iPhone & iPod Detection
Copy this code and paste it in your HTML
if(strstr($_SERVER['HTTP_USER_AGENT'],'iPhone') || strstr($_SERVER['HTTP_USER_AGENT'],'iPod')) {
header('Location: http://yoursite.com/iphone'); }
URL: http://davidwalsh.name/detect-iphone
Report this snippet
Comments
Subscribe to comments