i'm running apache 2/php 4.3.3 on my home webserver. i want to add a php page with a proxy test. various available sources explain how to use $REMOTE_ADDR, $HTTP_VIA, $HTTP_X_FORWARDED_FOR and other $HTTP_ variables, so far i know what to do.
however, while i can read $REMOTE_ADDR in php-scripts, i cannot read any of the relevant $HTTP_variables. Also my phpinfo() does not show any of the relevant $HTTP_variables (the phpinfo() on other servers does).
I tried to read the $HTTP_variables in all possible and impossible ways, $_GET, $_POST, $_SERVER and $_Whattaheck. my register_globals in php.ini is ON.
i connect from my company browser which is behind a proxy, and the proxy indeed sends the relevant information in the HTTP headers, which i verified by connecting to various proxy testing sites on the web. only my *&//%!! server does not evaluate the http_* fields.
i assume i'm missing some sort of apache/php config ??
can anybody help??
jazzmaka
HTTP_VIA environment variable not set
Moderator: General Moderators