02-26-06 04:24 PM
I've seen several postings on this question but the solution isn't
jumping out at me.
I'm having trouble picking up the value of $_SERVER['HTTP_REFERER'] in
PHP pages running on a Windows configuration with the following version
numbers:
Apache 2.0.55 WIN
PHP 5.1.2
The statement: print "HTTP_REFERER=[" . $_SERVER['HTTP_REFERER'] .
"]<br>"; produces no output.
Also, output from phpinfo() contains no reference to HTTP_REFERER.
Other $_SERVER[] variables do work okay. For example, the following
two values are produced by a print of $_SERVER['<attribute>']:
HTTP_HOST : localhost
HTTP_USER_AGENT : Mozilla/4.0 (compatible; MSIE 6.0; Windows NT 5.1;
SV1; .NET CLR 1.0.3705; .NET CLR 1.1.4322; Media Center PC 4.0)
I figure there must be some configuration setting either in the apache
server or in the php environment which isn't properly set. http.conf
and php.ini contain entries related to HTTP_REFERER, however, there's
nothing explicit regarding a setting that enables HTTP_REFERER.
Tony
[ Post a follow-up to this message ]
|