Return to Snippet

Revision: 11804
at February 19, 2009 10:38 by sidisinsane


Initial Code
if(strstr($_SERVER['HTTP_USER_AGENT'],'iPhone') || strstr($_SERVER['HTTP_USER_AGENT'],'iPod'))
{
	header('Location: http://yoursite.com/iphone');
	exit();
}

Initial URL
http://davidwalsh.name/detect-iphone

Initial Description

                                

Initial Title
iPhone & iPod Detection

Initial Tags
php, mobile, iphone

Initial Language
PHP