<?php
$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";
}?>
$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";
}?>
0 comments:
Post a Comment