PHP - Detect IE


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



Copy this code and paste it in your HTML
  1. <?php
  2. function detect_msie()
  3. {
  4. if (isset($_SERVER['HTTP_USER_AGENT']) &&
  5. (strpos($_SERVER['HTTP_USER_AGENT'], 'MSIE 6.0') !== false))
  6. return true;
  7. else
  8. return false;
  9. }
  10. ?>

Report this snippet


Comments

RSS Icon Subscribe to comments

You need to login to post a comment.