PHP iPhone iPod Detection

[Oct 18, 2010]


We can detect iPhone or iPod browser with the following code...

strpos($_SERVER['HTTP_USER_AGENT'], 'iPhone') !== FALSE
|| strpos($_SERVER['HTTP_USER_AGENT'], 'iPod') !== FALSE 

http://iphonemicrosites.com/tutorials/php-auto-bowser-detection/


Home
Web Log
Contact Me
© 2008-2012 Khomsan Phongphisansakun
May 19th, 2012