问题
I need to run a module that need ssl
to be enabled.
How can I detect if ssl
has been enabled?
The module generate a form through a javascript call.
I am using php.
I have no access to ssl
.
Thanks a lot!
回答1:
use the extension loaded check!
http://php.net/manual/en/function.extension-loaded.php
if(!extension_loaded('openssl'))
{
throw new Exception('This app needs the Open SSL PHP extension.');
}
try it ;)
来源:https://stackoverflow.com/questions/21848277/check-if-ssl-is-enabled-with-php