Re: referrer variable?

From: Date: Tue, 29 Aug 2000 21:01:51 +0000
Subject: Re: referrer variable?
References: 1  Groups: php.general 
Request: Send a blank email to php-general+get-14239@lists.php.net to get a copy of this message
On Tue, 29 Aug 2000 venome@gmx.net wrote: > is there a possibility for a script, similar to $PHP_SELF to get its own > url, to get the url that requested the page? i.e. if a send a "Location: > [page2]" header from page1, how can [page2] determine from where it was > requested? A HTTP Redirect does not cause a change in the Referrer. Otherwise, you can use $HTTP_REFERER or $HTTP_SERVER_VARS["HTTP_REFERER"]. - Sascha

« previous php.general (#14239) next »