Re: Parsing URL's with Apache and PHP
| From: | Richard Davey | Date: | Mon, 01 Mar 2004 15:57:38 +0000 |
| Subject: | Re: Parsing URL's with Apache and PHP | ||
| References: | 1 | Groups: | php.general |
| Request: | Send a blank email to php-general+get-179169@lists.php.net to get a copy of this message | ||
Hello Brian,
Monday, March 1, 2004, 3:49:09 PM, you wrote:
BJC> Are there variables or methods with apache I can use to get this entire
BJC> address? All I'm seeing is the HTTP Referrer and some other _SERVER vars
BJC> that do not give me the whole address.
Personally I use the following (combined they'll give you the full
address):
$_SERVER['HTTP_HOST'];
$_SERVER['REQUEST_URI'];
--
Best regards,
Richard Davey
http://www.phpcommunity.org/wiki/296.html