<?php
$user = $_SERVER['HTTP_USER_AGENT'];
$name = $_SERVER['SERVER_NAME'];
$soft = $_SERVER['SERVER_SOFTWARE'];
$meth = $_SERVER['REQUEST_METHOD'];
$addr = $_SERVER['REMOTE_ADDR'];
echo "HTTP_USER_AGENT: <b>$user</b> <br />";
echo "Server Name: <b>$name</b> <br />";
echo "Server Software: <b>$soft</b> <br />";
echo "Request Method: <b>$meth</b> <br />";
echo "Remote Addr: <b>$addr</b> <br />";
?>
$user = $_SERVER['HTTP_USER_AGENT'];
$name = $_SERVER['SERVER_NAME'];
$soft = $_SERVER['SERVER_SOFTWARE'];
$meth = $_SERVER['REQUEST_METHOD'];
$addr = $_SERVER['REMOTE_ADDR'];
echo "HTTP_USER_AGENT: <b>$user</b> <br />";
echo "Server Name: <b>$name</b> <br />";
echo "Server Software: <b>$soft</b> <br />";
echo "Request Method: <b>$meth</b> <br />";
echo "Remote Addr: <b>$addr</b> <br />";
?>
HTTP_USER_AGENT: Mozilla/4.0 (compatible; MSIE 6.0; Windows NT 5.0; .NET CLR 1.1.4322)
Server Name: localhost
Server Software: Apache/2.0.52 (Win32) mod_ssl/2.0.52 OpenSSL/0.9.7c PHP/4.3.9
Request Method: GET
Remote Addr: 127.0.0.1
Server Name: localhost
Server Software: Apache/2.0.52 (Win32) mod_ssl/2.0.52 OpenSSL/0.9.7c PHP/4.3.9
Request Method: GET
Remote Addr: 127.0.0.1
Mozilla/4.0 ?? Thats what my question is, is the HTTP_USER_AGENTthat I got correct? I didn't realize MSIE uses Mozilla if so
Comment