Re: Parsing URL's with Apache and PHP

From: Date: Mon, 01 Mar 2004 16:14:49 +0000
Subject: Re: Parsing URL's with Apache and PHP
References: 1 2  Groups: php.general 
Request: Send a blank email to php-general+get-179178@lists.php.net to get a copy of this message
That'll work! Didnt' even occur to me to combine two variables from $_SERVER, and at first I didn't thinkg HTTP_HOST would deliver what i was looking for. Thanks! "Richard Davey" <rich@launchcode.co.uk> wrote in message news:317814150.20040301155738@launchcode.co.uk... > 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

« previous php.general (#179178) next »