Re: getenv ? get the url the user is trying to reach

From: Date: Mon, 31 Jul 2000 19:40:15 +0000
Subject: Re: getenv ? get the url the user is trying to reach
References: 1  Groups: php.general 
Request: Send a blank email to php-general+get-9253@lists.php.net to get a copy of this message
On Mon, 31 Jul 2000, Melissa Anderson wrote: > I would like to build a php page that displays info based on the url that > the user is trying to reach ...I have been told that getenv() will get that > information but I have been unable to find documentation specific enough. > Any assistance is appreciated. PHP automatically makes all those variables available to you. Put a phpinfo() tag in a file and load up the page and look through the available variables. You are probably looking for something like $HTTP_HOST or $REQUEST_URI, or perhaps a combination of both. -Rasmus

« previous php.general (#9253) next »