Hi,
I'm trying to access the HTTP_REFERER environmental variable. I've tried with Perl and with PHP3. With both languages I ran scripts to list all the environmental variables and in both cases, the HTTP_REFERER was not listed. Other variables such as HTTP_USER_AGENT were there but not the...
It is Apache, Coderifous. I'll have a look in the httpd.conf file for any "fun looking lines".
In the course of this I finally discovered how the redirect a visitor using PHP so, if I can't crack the perl problem, and if I can find out how to get the referer in PHP, I'll do it in PHP...
Hi Jim,
Thanks for answering so quickly. I cringed when you mentioned the hyphen and underscore :)
$ref = $ENV{'HTTP_REFERER'};
$usr = $ENV{'HTTP_USER_AGENT'};
That's copied from the script I'm using, so it was ok. After that, I simply print $ref and $usr to a file. $ref prints ok but $usr...
Hi,
I need to check the referer of site visitors and I can't get HTTP-REFERER to yield any information at all. I've even copied and pasted code from perl.com which lists all the $ENV variables and their contents. Everything seems to work ok but still HTTP-REFERER reveals nothing.
I know that...
This site uses cookies to help personalise content, tailor your experience and to keep you logged in if you register.
By continuing to use this site, you are consenting to our use of cookies.