Garethp Posted June 9, 2010 Share Posted June 9, 2010 Well, I want to create a website that's mobile friendly, and I've seen many sites redirect mobiles to mobile subdirectories. But after google searches, all I find is code that checks the useragent, but says that it's not 100% accurate. Is there anyway to conclusively find out whether or not the browser is on a mobile? Link to comment https://forums.phpfreaks.com/topic/204264-how-do-i-detect-if-the-user-is-a-mobile/ Share on other sites More sharing options...
pdkv2 Posted June 9, 2010 Share Posted June 9, 2010 I think http://webdesign.about.com/od/mobile/a/detect-mobile-devices.htm will be helpful for you Link to comment https://forums.phpfreaks.com/topic/204264-how-do-i-detect-if-the-user-is-a-mobile/#findComment-1069853 Share on other sites More sharing options...
syed Posted June 9, 2010 Share Posted June 9, 2010 Get the user agent details, it will tell you if it is a mobile request. Remember user agent details is not reliable. Link to comment https://forums.phpfreaks.com/topic/204264-how-do-i-detect-if-the-user-is-a-mobile/#findComment-1069858 Share on other sites More sharing options...
Recommended Posts
Archived
This topic is now archived and is closed to further replies.