Re: something wrong with $_SERVER var
| From: | Chuck Wolber | Date: | Tue, 05 Oct 2004 01:28:33 +0000 |
| Subject: | Re: something wrong with $_SERVER var | ||
| References: | 1 | Groups: | php.general |
| Request: | Send a blank email to php-general+get-198632@lists.php.net to get a copy of this message | ||
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
--
http://www.quantumlinux.com
Quantum Linux Laboratories, LLC.
ACCELERATING Business with Open Technology
"The measure of the restoration lies in the extent to which we apply
social values more noble than mere monetary profit." - FDR