Re: How to get the FULL address of a certin page???

From: Date: Wed, 13 Mar 2002 03:50:24 +0000
Subject: Re: How to get the FULL address of a certin page???
References: 1 2 3  Groups: php.general 
Request: Send a blank email to php-general+get-88288@lists.php.net to get a copy of this message
On Tue, Mar 12, 2002 at 10:32:38PM -0500, eric.coleman@zaireweb.com wrote: > I have a url like this: > > > http://192.168.1.2/site/add_article.php?sid=5234a0f5acea9aa245dbe9846f6ace1c > > And I need to be able to RETURN the FULL url, how would i do this? I don't > think there is any one function/variable to do this.. Combine $_SERVER['HTTP_HOST'] and $_SERVER['REQUEST_URI'] to get what you want. Examine the output from phpinfo() to see if there are other variables you want to use. Enjoy, --Dan -- PHP scripts that make your job easier http://www.analysisandsolutions.com/code/ SQL Solution | Layout Solution | Form Solution T H E A N A L Y S I S A N D S O L U T I O N S C O M P A N Y

« previous php.general (#88288) next »