Re: URL of calling page

From: Date: Sun, 16 Feb 2003 22:11:05 +0000
Subject: Re: URL of calling page
References: 1  Groups: php.general 
Request: Send a blank email to php-general+get-135783@lists.php.net to get a copy of this message
At 22:58 16.02.2003, acleave said: --------------------[snip]-------------------- >I believe there's a way in PHP to get the URL of the page that called the >current page but can't find it. Is there such a function? Or would I >have to >use another script (like Javascript)? --------------------[snip]-------------------- http://www.php.net/manual/en/reserved.variables.php#reserved.variables.server $_SERVER['HTTP_REFERER'] The address of the page (if any) which referred the user agent to the current page. This is set by the user agent. Not all user agents will set this, and some provide the ability to modify HTTP_REFERER as a feature. In short, it cannot really be trusted. -- >O Ernest E. Vogelsinger (\) ICQ #13394035 ^ http://www.vogelsinger.at/

« previous php.general (#135783) next »