View Full Version : Undefined Index accessiong $_SERVER["HTTP_REFERER"]
01-11-2004, 02:43 PM
Hi, on my local machine, I can access the $_SERVER["HTTP_REFERER"] variable, but doesn't work our shared server.
I keep getting "Notice: Undefined index: HTTP_REFERER in filename"
01-11-2004, 03:08 PM
what browser & what version of PHP on the server?
some browsers do not pass the referer , but if it works on one then should work on t'other? unless your live server is really old and does not understand $_SERVER (try $HTTP_SERVER_VARS['HTTP_REFERER'])
Well, the link you posted works fine.
Are there different PHP Versions on the shared server an don your local machine?
01-11-2004, 04:00 PM
Well, the local machines php version is 4.2.3 and the shared server is 4.3.3 - the browser I'm testing on is IE 6.02 but would expect NS6 and mozilla to be used by others
The old method $HTTP_SERVER_VARS['HTTP_REFERER'] results in invalid variable
01-11-2004, 07:22 PM
I have had this problem on my server too.
On my websites server, which is not on my local machine, $_SERVER['HTTP_REFFERER']; works fine but on my local machine running apache and php4 I get the same error
Undefined index: HTTP_REFERER Hmmmm.
Powered by vBulletin® Version 4.2.2 Copyright © 2015 vBulletin Solutions, Inc. All rights reserved.