Is user using the Miscrosoft Internet Explorer : Client Info « Development « PHP






Is user using the Miscrosoft Internet Explorer

<?
$agent = getenv("HTTP_USER_AGENT");
echo($agent);

if (preg_match("/MSIE/i", $agent)) {
     $result = "You are using Microsoft Internet Explorer.";
}else {
     $result = "You are using $agent";
}
?>
           
       








Related examples in the same category

1.Using gethostbyaddr() to Get a Hostname
2. The name and version of the client
3.Http Host
4.Http Referer