Page 1 of 1

Newbie Question: $refpage

Posted: Thu Jul 03, 2003 12:18 pm
by valleysoapbox
I am hoping for some advice on this error:

Notice: Use of undefined constant HTTP_REFERER - assumed 'HTTP_REFERER' in C:\Users\Top Notch Hosting\valleysoapbox.com\www\phprint.php on line 46

Line 46 reads:

Code: Select all

$refpage = (phpversion() > "4.1.0") ? $_SERVERїHTTP_REFERER] : $HTTP_SERVER_VARSїHTTP_REFERER];
If you can help, I would be grateful: I will continue to peruse the message boards as I have been all morning.

Thanks

Posted: Thu Jul 03, 2003 2:07 pm
by m@ndio
try this:

Code: Select all

$refpage = (phpversion() > "4.1.0") ? $_SERVER["HTTP_REFERER"] : $HTTP_SERVER_VARS["HTTP_REFERER"];

Posted: Fri Jul 04, 2003 4:04 am
by twigletmac
Have a read of this:
Why is $foo[bar] wrong?

Mac