sidisinsane on 02/19/09
Last Edited at 02/19/09 10:38am
if(strstr($_SERVER['HTTP_USER_AGENT'],'iPhone') || strstr($_SERVER['HTTP_USER_AGENT'],'iPod')){ header('Location: http://yoursite.com/iphone'); exit();}
URL: http://davidwalsh.name/detect-iphone
Report this snippet Tweet
Comment:
You need to login to post a comment.