News Feed
Jobs Feed
Sections




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

TheseDays.com:
An Easy Way to Detect Mobile Devices
August 11, 2010 @ 08:24:35

On the These Days blog there's a recent post talking about creating a mobile version of your site and how you can detect if the visitor is using a mobile browser or not using WURFL.

WURFL, The Wireless Universal Resource File (WURFL) is an open source project which collects information about all of the different mobile devices in use. It is constantly being updated, so as long as you keep your WURFL definitions up-to-date you don't have to worry about your detection scripts not recognising new devices. By querying a WURFL database with your visitor's User Agent string, you can not only determine whether the device they are using is a mobile device, but whether it has a touch screen, can make phone calls, is a tablet (iPad) and more.

They include a snippet of code that uses the Tera-WURFL service and a call to getCapabilitiesFromAgent to see what kind of client is making the requests and what it supports.

1 comment voice your opinion now!
detect wurfl wireless mobile device snippet


blog comments powered by Disqus

Similar Posts

Ryan Malesevich's Blog: WP Plugins: WP-Wap, Make a WAP Version of Your Blog

Zend Developer Zone: Building Mobile Applications with PHP and Adobe AIR for Devices

Raphael Stolt's Blog: Creating Zend Framework snippets for TextMate

Sameer Borate's Blog: Grabbing the referrer search engine keywords for a site

php|architect Blog: php|tek is goin' digital


Community Events











Don't see your event here?
Let us know!


language hhvm framework introduction application composer hack component opinion podcast threedevsandamaybe code package release install facebook security series unittest symfony2

All content copyright, 2014 PHPDeveloper.org :: info@phpdeveloper.org - Powered by the Solar PHP Framework