View

If IE 6, go ***** yourself (or download a decent browser)

  1. <?php
  2.         $useragent = $_SERVER[‘HTTP_USER_AGENT’];
  3. if( eregi(“(msie) ([6]{1})”,$useragent) )
  4. {print “IE 8.0 -> do something”;}
  5. else
  6. { }
  7. ?>

You may also like