...

View Full Version : referral page



kenny873
03-06-2003, 10:27 AM
hello

if i have a page, say thispage.php and wants to check where does the previous page comes from, how can i do it???

any php functions?

Phantom
03-06-2003, 12:35 PM
$HTTP_REFERER...

echo "$HTTP_REFERER<br>";

Would print out the last page accessed

SYP}{ER
03-06-2003, 12:40 PM
Or $_SERVER["HTTP_REFERER"] (looks cooler :p)

kenny873
03-07-2003, 02:33 AM
thanks...but i even tried printing as

print_r($_SERVER); to print all the para in $_SERVER[..] but still I cannot find HTTP_REFERER....

or if I echo "$_SERVER['HTTP_REFERER']";

it did not give me anyresult

jacky_cheecheo
03-14-2004, 10:19 PM
same thing here...how come i dont have $HTTP_REFERER??

i get this error:

Notice: Undefined variable: HTTP_REFERER in test.php on line 2


ooppss...i got it now.. ignore this!

Nightfire
03-15-2004, 12:14 AM
kenny873:
Did you try accessing the page from a different url? Also, some firewalls, browsers etc will prevent the referrer being shown/recorded.

<edit>Nevermind, just seen this is a very old thread, thought it was recent</edit>



EZ Archive Ads Plugin for vBulletin Copyright 2006 Computer Help Forum