Tagged: How to Detect IE5 or IE6 using php code

How to Detect IE5 or IE6 using php code

PHP CODE: function getMSIE6() { $userAgent = strtolower($_SERVER[“HTTP_USER_AGENT”]); if (ereg(“msie 6”, $userAgent) || ereg(“msie 5”, $userAgent)) { return true; } return false; }