How to Detect Mobile Devices: iPhone Android Google Phone Browser

Loading...

Sign in or sign up now!
Alert icon
Upgrade to the latest Flash Player for improved playback performance. Upgrade now or more info.
12,418
Loading...
Alert icon
Sign in or sign up now!
Alert icon

Uploaded by on Mar 27, 2010

PHP Device Detection Homepage Redirect Script:
http://www.developphp.com/tutorial_read.php?tid=128

PHP Alternating CSS Style Sheets Script:
http://www.developphp.com/tutorial_read.php?tid=130

Browser Detect Using Javascript:
http://www.developphp.com/tutorial_read.php?tid=129

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 http://www.developphp.com

  • likes, 2 dislikes

Link to this comment:

Share to:

Uploader Comments (flashbuilding)

  • what if your just useing a normal cell phone and now a iphone

  • You have to find out the "user agent" string for the target device you are trying to detect.

  • great info adam

  • Thank you sir... we'll try to get a few free templates made up.

see all

All Comments (23)

Sign In or Sign Up now to post a comment!
  • this is all helpful information and i can probably figure it out just by viewing the code in the video, though all the links are broken and it would be helpful to see the other sites

  • links are broken in video desc...

  • 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"

Loading...

Alert icon
0 / 00Unsaved Playlist Return to active list
    1. Your queue is empty. Add videos to your queue using this button:
      or sign in to load a different list.
    Loading...Loading...Saving...
    • Clear all videos from this list
    • Learn more