Return to Snippet

Revision: 12562
at March 19, 2009 06:59 by tobaco

Updated Code
if (strpos($_SERVER['HTTP_USER_AGENT'],"MSIE 8")) {header("X-UA-Compatible: IE=7");}

if (strpos($_SERVER['HTTP_USER_AGENT'],"MSIE 8")) {header("X-UA-Compatible: IE=EmulateIE7");}

Revision: 12561
at March 19, 2009 05:45 by tobaco

Initial Code
if (strpos($_SERVER['HTTP_USER_AGENT'],"MSIE 8")) {header("X-UA-Compatible: IE=7");}

Initial URL

Initial Description
include this snippet in your sites to force InternetExplorer 8 to display your site like InternetExplorer 7

In summary, IE7 compatibility support looks as follows:


Display in IE7 Standards mode; Already supported in the IE8 Beta 1 release


Display standards DOCTYPEs in IE7 Standards mode; Display quirks DOCTYPEs in Quirks mode; Available through the IE June Security Update for IE8 Beta 1

Initial Title
Add http header to force IE8 to render in IE7 mode (PHP-Version)

Initial Tags
http, header

Initial Language