Re: something wrong with $_SERVER var

[Date Prev][Date Next][Thread Prev][Thread Next][Date Index][Thread Index]

 



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

--
PHP General Mailing List (http://www.php.net/)
To unsubscribe, visit: http://www.php.net/unsub.php


[Index of Archives]     [PHP Home]     [Apache Users]     [PHP on Windows]     [Kernel Newbies]     [PHP Install]     [PHP Classes]     [Pear]     [Postgresql]     [Postgresql PHP]     [PHP on Windows]     [PHP Database Programming]     [PHP SOAP]

  Powered by Linux