But you can make some intelligent decisions in your application
based on the device now. You can even conditionally print
tags. E.g. show a
download link only if the device has download support.
WURFL API is available in many programming languages, including Java, PHP, .Net,
Ruby, and Python. You can download it from: http://wurfl.sourceforge.net/.
XML Processing can Bog Down My Server, is There
Something Easier?
Yes! The WURFL XML file is above 4MB, and despite many structural optimizations,
processing it on every request will certainly slow down your server. Many APIs
provide caching to speed things up. But having this available in a database will be best.
Tera-WURFL is a PHP package that uses MySQL to store WURFL data. It bundles
WALL and an admin panel??”making it the top choice for mobile web adaptation.
Setting up Tera WURFL involves downloading the latest package from
http://www.tera-wurfl.com/, extracting the files and entering the database
connection information in the configuration file. It will load up the device data to
the database and can start serving WALL pages.
??? ??? ??? ??? ??? ??? ??? ??? ??? ??? ???
Adapting to User Devices
[ 82 ]
What About W3C's DIAL?
W3C's DIAL (Device Independent Authoring Language) is a combination of
XHTML 2, XForms, and DISelect.
Pages:
97
98
99
100
101
102
103
104
105
106
107
108
109
110
111
112
113
114
115
116
117
118
119
120
121