Re: Problem detecting HTTPS connection

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

 



Hello Wee--

That's been discussed a few times on the list. For example:

http://beeblex.com/lists/index.php/php.general/190410

Cheers,


Marco


On 8/9/05 8:59 PM, "Wee Keat" <weekeat@xxxxxxxxx> wrote:

> Hi all,
> 
> I've been struggling to detect HTTPS connection for a shopping cart.
> I've used $_SERVER['SERVER_PORT'] to check for 443 and it kept on
> showing up as 80.
> 
> Does anyone have any idea why this is happening? Is it the server
> config? I've called the server administrator and he said that it is
> running through port 443 for https connections.
> 
> Here's an output of $_SERVER['SERVER_PORT'] on the site that I'm working on:
> 
> https://www.axentonline.com.au/port_test.php
> http://www.axentonline.com.au/port_test.php
> 
> Both the above are showing server_port as 80. Please assist.
> 
> 
> Thanks.
> 
> 
> PHPInfo:
> -------
> Apache-AdvancedExtranetServer/2.0.50
> Mandrakelinux/7.2.101mdk
> mod_ssl/2.0.50
> OpenSSL/0.9.7d
> PHP/4.3.8
> 

-- 
Marco Tabini
President & CEO

Marco Tabini & Associates, Inc.
28 Bombay Ave.
Toronto, ON M3H 1B7
Canada

Phone: +1 (416) 630-6202
Fax: +1 (416) 630-5057

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