iPhone Detection (PHP)


/ Published in: PHP
Save to your folder(s)



Copy this code and paste it in your HTML
  1. if (stristr($_SERVER['HTTP_USER_AGENT'], 'iPhone')) {
  2. // redirect to an iphone version of the site?
  3. }

URL: http://bettesmidler.com

Report this snippet


Comments

RSS Icon Subscribe to comments

You need to login to post a comment.