Not a member of Pastebin yet?
Sign Up,
it unlocks many cool features!
- <?
- $agent = getenv("HTTP_USER_AGENT");
- if (preg_match("/MSIE/i", "$agent")) {
- $result = "You are using Microsoft Internet Explorer.";
- } else if (preg_match("Mozilla", "$agent")) {
- $result = "You are using Mozilla Firefox.";
- } else {$result = "You are using $agent";}
- echo $result;
- ?>
Add Comment
Please, Sign In to add comment