-
-
Save 0xnbk/583662 to your computer and use it in GitHub Desktop.
Show IE Warning Message
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 | |
//if the browser is Microsoft IE | |
if (strstr($_SERVER['HTTP_USER_AGENT'], "MSIE")) { | |
//if (ereg('MSIE 6',$_SERVER['HTTP_USER_AGENT'])) | |
echo "Your Error Message Here"; | |
}?> |
Sign up for free
to join this conversation on GitHub.
Already have an account?
Sign in to comment
PHP snippet to detect if the browser is IE, and display a simple message. Uncomment line 4 to detect JUST IE 6.