Return to Snippet

Revision: 35552
at November 10, 2010 06:59 by marcusfelix


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

Initial URL

                                

Initial Description

                                

Initial Title
iPhone & iPod detection

Initial Tags

                                

Initial Language
PHP