I have a PHP google map application that I want to make visible to users when they are using a desktop but redirect to another PHP page if the visitor is using a mobile device. I know there are numerous ways to do this from OS to browser type detection but was wondering if someone could provide some code they feel is the best way to handle this and it being the most consistent?
Share
If you don’t want to use javascript, you can handle it via php.
Take a look at this lib: http://code.google.com/p/php-mobile-detect/.
And then you could do something like: