Re: something wrong with $_SERVER var

From: Date: Tue, 05 Oct 2004 19:49:49 +0000
Subject: Re: something wrong with $_SERVER var
References: 1 2  Groups: php.general 
Request: Send a blank email to php-general+get-198714@lists.php.net to get a copy of this message
Chuck Wolber wrote:
On Tue, 5 Oct 2004, Merlin wrote:
I am experiencing a strange behaviour with $_SERVER vars. Somehow the var: $_SERVER[SERVER_PORT] seems to be 443 even if it is 80. I had following statement inside my app: if ($_SERVER[SERVER_PORT] == '443' AND !$SSL){ header("Location:http://".$_SERVER[HTTP_HOST].$_SERVER[REQUEST_URI]); exit; }
You can start by putting a space between the "Location:" and the rest of your URL. -Chuck I think this is not the problem. The real issue is that this command should not execute if run over regular port 80 http://...
But it did in some rar cases. How come?! Any ideas? merlin

« previous php.general (#198714) next »