Jump to content

How do I detect if the user is a mobile?


Garethp

Recommended Posts

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

Archived

This topic is now archived and is closed to further replies.

×
×
  • Create New...

Important Information

We have placed cookies on your device to help make this website better. You can adjust your cookie settings, otherwise we'll assume you're okay to continue.