Hello; I just wrote a script that needs to know what the referring page is but "$_SERVER['HTTP_REFERER']" does not seem to be working. Is there a way around this?
Some people's browsers, and most robots, are set not to disclose the HTTP referrer, which might be what is happening to you. As far as I know there is not an alternative.
If the referring page is one of your own, you could use one-time tokens (also useful to prevent CSRF) or cookies, other than that - $_SERVER['HTTP_REFERER'] needs PHP > 4.1, so if your version is outdated, try $HTTP_SERVER_VARS['HTTP_REFERER']
$_SERVER['HTTP_REFERER'] should work then. Are you sure the referer is being supplied by the browser you tested with?
nah most modern browser (IE 7 / FF / Opera) allows user to block any server referrer request to protect user privacy