10-13-2009, 12:21 AM
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, 02: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, 11:01 AM
Take a look at the articles