Jump to content

how to find refferer URL


hasanatkazmi

Recommended Posts

$referrer=$_SERVER['HTTP_REFERRER'];

echo $referrer;

 

then to cut out all the superfluous pants... you could use:

$referrer=explode('http://www.mydomain.com',$referrer);

echo $referrer[1];

 

but that'd give you all the $_REQUEST variables too

 

to get around that just explode again using '?' as the delimiter and give that a try.

Archived

This topic is now archived and is closed to further replies.

×
×
  • Create New...

Important Information

We have placed cookies on your device to help make this website better. You can adjust your cookie settings, otherwise we'll assume you're okay to continue.