I'm using PHP code from: DetectMobileBrowsers.mobi to redirect mobile users to a mobile site. I've got this code at the top of my page but I'm not experiencing any redirects.
include('mobile_device_detect.php');
mobile_device_detect(true,true,true,true,'http://mydomain.com/mobile.php','http://mydomain.com/index.php');
I don't want to include the code from the website mentioned above because I believe it's copyright. Is anyone familiar with mobile_device_detect.php? Or is there a better solution?
Please don't respond that I should just use a responsive design. That's not an option in this case.