Looking for more information on how to do PHP the right way? Check out PHP: The Right Way

O'Reilly Network:
WURFLing Your Way to WAP
Apr 15, 2004 @ 12:13:13

Given that more and more people are connecting to sites with their moblie devices (phones, PDAs, Blackberries, etc), more and more sites are creating WAP-friendly versions of their own pages. Well, there's a project that's talked about over on the O'Reilly Network that helps that effort in leaps and bounds.

The Wireless Universal Resource File (WURFL) open source project has developed an ambitious XML configuration file tracking the capabilities of over 400+ mobile devices. The creation of such resource files is called resourcification. The ASP.NET Mobile Controls has similar device capability information found in the Machine.config file. You can visit the WURFL Project website at the following link: http://wurfl.sourceforge.net. Here is how you deploy WURFL on your website using PHP.

Once you include that, it's as simple as calling $obj->browser_is_wap to detect a mobile device versus a regular browser. They go on to show you how, using XSLT, you can simply and easily modify the layout/content of your pages to accomidate wireless devices.

tagged:

Link:


Trending Topics: