Re: open / check SSL activation

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

 



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 ?

if (isset($_SERVER['HTTPS']) && (strtolower($_SERVER['HTTPS']) == 'on')) {
	echo "your http connection is running over SSL!";
}


thanks a lot,
Alain


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