Forum Moderators: coopster

Message Too Old, No Replies

Checking if SSL is available?

         

ahmedtheking

9:11 am on May 9, 2006 (gmt 0)

WebmasterWorld Senior Member 10+ Year Member



Is there a function or just a way to check if SSL is available in PHP?

eelixduppy

11:16 am on May 9, 2006 (gmt 0)



Hello...

Since SSL is required to be installed, then you could do something like this:


if(function_exists('openssl_sign')) {
echo "SSL Available!"; }
else {
echo "SSL Not Available";
}

Hope this helps!

eelix

ahmedtheking

11:22 am on May 9, 2006 (gmt 0)

WebmasterWorld Senior Member 10+ Year Member



Awesome, I'll try that out.