Forum Moderators: coopster
I think that this may be a common problem, but I haven't been able to figure out what 1. is happening or 2. I'm doing wrong.
I can't seem to get the $HTTP_REFERER data (I'm on windows, server on my machine).
I have seen it the odd time while working with other scripts, sometimes it's there if I "print_r($_SERVER);" and then not there if I "print_r($_SERVER[HTTP_REFERER]);".
What's the story?
I'm building a user tracking script, and wouldn't mind having this data...
...it is important to understand that...the REFERER header is intrinsically problematic due to the fact that browsers can send an incorrect REFERER, either because they want to circumvent your restriction or simply because they don't send the right thing (or anything at all).
You could always check to see if it is there using the isset [php.net] function.
Similar issue:
[webmasterworld.com...]
Shucks (blush), thanks ;)
How do I add browsers and referrers to my logs? [httpd.apache.org]