Created
November 5, 2012 08:16
-
-
Save liunian/4015978 to your computer and use it in GitHub Desktop.
detect whether the client is ie6 or not
This file contains 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
function isIE6() { | |
return strpos($_SERVER['HTTP_USER_AGENT'], 'MSIE 6.0'); | |
} | |
# ie6's UA example | |
# Mozilla/4.0 (compatible; MSIE 6.0; Windows NT 6.1; QQDownload 731; SLCC2; .NET CLR 2.0.50727; .NET CLR 3.5.30729; .NET CLR 3.0.30729; .NET4.0C; .NET4.0E)3 |
Sign up for free
to join this conversation on GitHub.
Already have an account?
Sign in to comment