"Timo Henke" <we*******@fli7e.de> wrote in message
news:bl*************@news.t-online.com...
"Jez" <je**********@btinternet.com> wrote in message
news:ad**************************@posting.google.c om... Any ideas why I'm not able to use $_SERVER['HTTP_REFERER'] on my
shared hosting account (PHP 4.1.2), but I can on my local server (PHP
4.3.3)?
Just print it out to the browser:
print '<pre><xmp>';
print_r($_SERVER);
print '</xmp></pre>';
and you see which keys are defined inside $_SERVER @ your hoster.
It could be related to your browser. Most firewall products will block the
sending of the HTTP_REFERER information to untrusted sites. If you can't
read HTTP_REFERER during testing, try turning your firewall off as it may
make a difference. Firewalls create a lot of problems for users and they
often blame the web developer for cookie problems, HTTP_REFERER issues and
spurious JavaScript errors when its the firewall's interference that has
caused the errors to occur. You can, and should, program around cookie and
REFERER issues but the JavaScript errors are moderately difficult to code
around unless you start using sneaky tactics. Such tactics for legitimate
purposes seem a bit bizarre but Symantec and ZoneAlarm create a significant
number of support issues through their default settings.
Paulus