Re: [PHP] something wrong with $_SERVER var

2004-10-05 Thread Merlin
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

Re: [PHP] something wrong with $_SERVER var

2004-10-04 Thread Chuck Wolber
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://"

[PHP] something wrong with $_SERVER var

2004-10-04 Thread Merlin
Hi there, 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[REQUES