What is the simplest way to tell if a user is using a mobile device to browse my site using PHP?
I have come across many classes that you can use but I was hoping fo
You only need to include user_agent.php file which can be found from Mobile device detection in PHP page and use the following code.
user_agent.php
is_mobile()){ header("Location:http://m.codexworld.com"); exit; } ?>