[PHP] Problem detecting HTTPS connection

2005-08-09 Thread Wee Keat
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

Re: [PHP] Problem detecting HTTPS connection

2005-08-09 Thread Marco Tabini
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 [EMAIL PROTECTED] wrote: Hi all, I've been struggling to detect HTTPS connection for a shopping cart. I've used

Re: [PHP] Problem detecting HTTPS connection

2005-08-09 Thread Wee Keat
Hi Marco, Thanks for taking the time to answer my questions. Marco Tabini wrote: That's been discussed a few times on the list. For example: http://beeblex.com/lists/index.php/php.general/190410 Yes. I'm truly aware of that and have tried it but to no avail. I've added the code provided in

Re: [PHP] Problem detecting HTTPS connection

2005-08-09 Thread Marco Tabini
On 8/9/05 10:30 PM, Wee Keat [EMAIL PROTECTED] wrote: Hi Marco, Thanks for taking the time to answer my questions. Marco Tabini wrote: That's been discussed a few times on the list. For example: http://beeblex.com/lists/index.php/php.general/190410 Yes. I'm truly aware of that and

Re: [PHP] Problem detecting HTTPS connection

2005-08-09 Thread Wee Keat
Marco Tabini wrote: Unfortunately, I can't seem to be able to connect to your server right now. What server software are you using? I have never heard of this approach not Info: --- Apache-AdvancedExtranetServer/2.0.50 Mandrakelinux/7.2.101mdk mod_ssl/2.0.50 OpenSSL/0.9.7d PHP/4.3.8 The