Recognising a mobile device

Giganews Newsgroups
Subject: Recognising a mobile device
Posted by:  Alfred Molon (alfred_mol…@yahoo.com)
Date: Sun, 9 Sep 2012

I'm wondering what would be necessary to create a mobile version of my
site. This could for instance have a simplified page layout with fewer
buttons.

The first step would probably be to detect the mobile device. I guess
this might be done by reading the user agent string and comparing it
with a database (for instance wurfl, wurfl.sourceforge.net) and then
serving a page which fits on the screen. Is this the way of doing it or
is there a better way?

--

Alfred Molon
http://www.molon.de - Photos of Asia, Africa and Europe

Replies