View Full Version : Mobile Browser Detection
10-12-2009, 11:21 PM
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.
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
10-13-2009, 10:01 AM
Take a look at the articles
Powered by vBulletin® Version 4.2.2 Copyright © 2016 vBulletin Solutions, Inc. All rights reserved.