tobyheywood
IS-IT--Management
Can anyone point out why I'm not getting the HTTP variables displayed on the page whilst using this script.
I think it may be somehing to do with the way that the server is setup! Are there differences between Apache 1 and Apache 2 which would change the way you get HTTP variables?
Anyway here is the code...
<?php
$envs = array("HTTP_REFERER", "HTTP_USER_AGENT", "REMOTE_ADDR", "REMOTE_HOST", "QUERY_STRING", "PATH_INFO"
;
foreach($envs as $env)
print "$env: $GLOBALS[$env]<br>";
?>
Thanks in advance.
Regards
Toby Heywood
I think it may be somehing to do with the way that the server is setup! Are there differences between Apache 1 and Apache 2 which would change the way you get HTTP variables?
Anyway here is the code...
<?php
$envs = array("HTTP_REFERER", "HTTP_USER_AGENT", "REMOTE_ADDR", "REMOTE_HOST", "QUERY_STRING", "PATH_INFO"

foreach($envs as $env)
print "$env: $GLOBALS[$env]<br>";
?>
Thanks in advance.
Regards
Toby Heywood