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.

Recommended Answers

All 2 Replies

Hi,

Try reading my recommendation here

Thanks! I'll take a look.

Be a part of the DaniWeb community

We're a friendly, industry-focused community of developers, IT pros, digital marketers, and technology enthusiasts meeting, networking, learning, and sharing knowledge.