Re: Getting whole URL

From: Date: Wed, 05 May 2004 18:07:40 +0000
Subject: Re: Getting whole URL
References: 1 2 3  Groups: php.general 
Request: Send a blank email to php-general+get-185463@lists.php.net to get a copy of this message
In my phpinfo() (Win2000, Apache2, PHP 4.3.4) my REQUEST_URI only gives everything after the host. If you wanted the host information along with that, you have to get that in the seperate index: HTTP_HOST. -- Rob
And, in general, if you want to browse around and see what kind of data you have available, this is a good way to check: echo '<pre>'; print_r($_SERVER); echo '</pre>'; -Dan

« previous php.general (#185463) next »