Posted By

mzym on 09/22/09


Tagged

php browser ie6


Versions (?)

Who likes this?

1 person have marked this snippet as a favorite

leaase


IE6 must die!


 / Published in: PHP
 

  1. $browser = $_SERVER['HTTP_USER_AGENT'];
  2.  
  3. if(stristr($browser, "MSIE 6.0") || stristr($browser, "MSIE 5.5") || stristr($browser, "MSIE 5.0")){
  4. echo"<script language=\"JavaScript\">
  5. function reDirect() {
  6. self.location.href = \"/old.html\";
  7. }
  8. reDirect();
  9. </script>";
  10. }

Report this snippet  

You need to login to post a comment.