Re: something wrong with $_SERVER var

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

 



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

-- 
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