PHP Device Detection Homepage Redirect Script: www.developphp.com PHP Alternating CSS Style Sheets Script: www.developphp.com Browser Detect Using Javascript: www.developphp.com Learn a few methods of detecting mobile phones, devices, handhelds, and then offer a standardized mobile website layout if those devices are detected. This lesson is brought to you free by the gang at www.developphp.com

So, all I do copy and paste the PHP script onto my homepage, before any of the other code. It’s not working for me. I’m not sure what the problem is. Could it be my location URL? you have “android_home.html”?
Great info Adam – What’s you take on Wapple and MoFuse whom as I understand it provide (come with) the code needed to automatically detect which mobile device is hitting the site and then renders the proper code automatically?
@ThaPaddeProductions Never mind, it’s works now
The video want load for me
I was looking for this tut, GREAT STUFF!!!!
Great! Does Android cover “everybody else” as far as mobile devices are concerned or do I need to add to this script more agents? Thanks again for the great tute.
works like a charm, thanks adam. i gotta tell ya that steve jobs and his dislike of flash makes no sense to me. mac folks seem to be having a hard time defending him these days.
“in my boouuth”
For some reason the Moto Droid has ‘Android’ in its UA string… you might want to do ‘/android/i’ or do and another case if you’re attempting to detect the 2.1 Droid phone.
This is great! Added to my snippets!!
good stuff thanks!
nice!!!
amazing adam
lol, i just found out that your intro is in super mario galaxy when in the begining bowsers ship comes =D
You have to find out the “user agent” string for the target device you are trying to detect.
what if your just useing a normal cell phone and now a iphone
you should put the example URLs in the description box. Thanks
Helpful as always. TnQ Adam. :>
Thank you sir… we’ll try to get a few free templates made up.
great info adam