11
Try this and see if you can get it do what you're trying to accomplish.
$hst = $_SERVER["HTTP_HOST"];
$uri = $_SERVER["REQUEST_URI"];
$rmt = $_SERVER["REMOTE_ADDR"];
$br = $_SERVER["HTTP_USER_AGENT"];
echo "Your IP address is : $rmt n
n The page you requested was: $uri n
n The browser you are using is $br";