News Feed
Jobs Feed
Sections




News Archive
Looking for more information on how to do PHP the right way? Check out PHP: The Right Way

David Walsh's Blog:
iPad Detection Using JavaScript or PHP
April 13, 2010 @ 12:22:22

David Walsh has a new post to his blog today with some code snippets that can help you detect iPad users when they come to your site.

The hottest device out there right now seems to be the iPad. iPad this, iPad that, iPod your mom. I'm underwhelmed with the device but that doesn't mean I shouldn't try to account for such devices on the websites I create.

He includes three ways to get the job done by matching against the User Agent sent by the browser - Javascript, PHP and with an .htaccess file for an Apache server. As one commenter points out, though, you need to be sure if you already have a redirect on the word "mobile", the iPad's User Agent contains that too.

1 comment voice your opinion now!
ipad apple detect useragent


blog comments powered by Disqus

Similar Posts

Oliver John Tibi's Blog: Mobile-ize Your CakePHP Application

/Dev/Hell Podcast: Episode 12 - Irish Eyes Are Always Smiling

Matthew Weir O'Phinney's Blog: mbstring comes to the rescue

Jani Hartikainen's Blog: Now you can write PHP code...without writing any code

PHPMaster.com: Create Digital Tickets with PHP and Apple Passbook


Community Events











Don't see your event here?
Let us know!


package security hhvm code podcast symfony2 opinion application install introduction framework series overview release facebook component composer language hack unittest

All content copyright, 2014 PHPDeveloper.org :: info@phpdeveloper.org - Powered by the Solar PHP Framework