Here is the code to check the browser Either it is internet explorer or some other browser.
<?php
$user_agent = $_SERVER['HTTP_USER_AGENT'];
if (preg_match('/MSIE/i', $user_agent)) {
echo "Internet Explorer"; // HERE you can set any condition which you only execute in IE case
} else {
echo "Non-IE Browser";
}
?>
No comments:
Post a Comment