Re: $HTTP_SERVER_VARS has only 1 value

From: Date: Mon, 22 Jan 2001 20:49:21 +0000
Subject: Re: $HTTP_SERVER_VARS has only 1 value
References: 1 2  Groups: php.general 
Request: Send a blank email to php-general+get-36073@lists.php.net to get a copy of this message
Hi Todd! On Mon, 22 Jan 2001, Todd Cary wrote: > Rasmus - > > I am running Apache on my notebook so that I can do some development > while I am "on-the-road". My code needs to obtain the URL and SERVER > and I do this with $HTTP_SERVER_VARS. However, under Apache (I use IIS > on the Win 2K server and $HTTP_SERVER_VARS contains many items) I am > only getting the PHP_SELF item. > Why don't you get them from environment? $sn = getenv('SERVER_NAME'); $ru = getenv('REQUEST_URI'); or 'SCRIPT_NAME', depending on what you need. -- teodor

« previous php.general (#36073) next »