Posted By

marcusfelix on 11/10/10


Tagged


Versions (?)

iPhone & iPod detection


 / Published in: PHP
 

  1. if(strstr($_SERVER['HTTP_USER_AGENT'],'iPhone') || strstr($_SERVER['HTTP_USER_AGENT'],'iPod'))
  2. {
  3. header('Location: http://yoursite.com/iphone');
  4. exit();
  5. }

Report this snippet  

You need to login to post a comment.