Created
August 14, 2014 19:50
-
-
Save gabrysiak/c8fbab53ada48bcce0f1 to your computer and use it in GitHub Desktop.
This file contains hidden or bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
<?php $IE6 = (ereg('MSIE 6',$_SERVER['HTTP_USER_AGENT'])) ? true : false; | |
$IE7 = (ereg('MSIE 7',$_SERVER['HTTP_USER_AGENT'])) ? true : false; | |
$IE8 = (ereg('MSIE 8',$_SERVER['HTTP_USER_AGENT'])) ? true : false; | |
if (($IE6 == 1) || ($IE7 == 1) || ($IE8 == 1)) { | |
// Do fallback stuff that old browsers can do here | |
echo "Shit its ie!"; | |
} else { ?> | |
// do stuff that real browsers can handle here | |
<?php } ?> |
Sign up for free
to join this conversation on GitHub.
Already have an account?
Sign in to comment