Re: open / check SSL activation
| From: | Thomas Munz | Date: | Wed, 05 Apr 2006 13:24:56 +0000 |
| Subject: | Re: open / check SSL activation | ||
| References: | 1 | Groups: | php.general |
| Request: | Send a blank email to php-general+get-233255@lists.php.net to get a copy of this message | ||
if request come from port 443, SSL = Active
you can get the port from $_SERVER["SERVER_PORT"]
on Wednesday 05 April 2006 15:12, Alain Roger wrote:
> Hi,
>
> I would like to ebsure that my user has SSL activated.
>
> for that i would like to do something like that :
> 1. after lo-in button click, application will check if SSL is already
> activated.
> 1.a if no, php code should activate SSL
> 1.b if yes, php code should control login and password entered.
> 2. ....
>
> how from PHP code, can i test if SSL is activated and if need activate SSL
> ?
>
> thanks a lot,
> Alain