iPhone & iPod Detection

if(strstr($_SERVER['HTTP_USER_AGENT'],'iPhone') || strstr($_SERVER['HTTP_USER_AGENT'],'iPod'))
{
header('Location: <a href="http://yoursite.com/iphone" >http://yoursite.com/iphone</a>');
exit();
}

source

Comments are closed.