...

View Full Version : Mobile Browser Detection



treeleaf20
10-12-2009, 11:21 PM
All,
Does anyone have a good script to determine if the browser accessing the site is a mobile phone and if it is send them to the mobile version of the site?

Thanks in advance.

Fou-Lu
10-13-2009, 01:49 AM
I don't do much mobile processing since its generally a client control, but I see how you'd want to take care of the redirection. Here's a link to useragents, I have no idea how valid or up to date they are: http://www.zytrax.com/tech/web/mobile_ids.html
Assuming that browse cap is up to date, you can also use the browsecap file with get_browser: http://php.ca/manual/en/function.get-browser.php

abduraooft
10-13-2009, 10:01 AM
Take a look at the articles
http://alistapart.com/articles/putyourcontentinmypocket
http://www.alistapart.com/articles/putyourcontentinmypocketpart2/



EZ Archive Ads Plugin for vBulletin Copyright 2006 Computer Help Forum