我需要运行一个需要启用ssl的模块。如何检测ssl是否已开启?
该模块通过javascript调用生成表单。
我正在使用php。
我无法访问ssl。
非常感谢!
发布于 2014-02-18 16:48:52
使用扩展加载检查!
http://php.net/manual/en/function.extension-loaded.php
if(!extension_loaded('openssl'))
{
throw new Exception('This app needs the Open SSL PHP extension.');
}试试看;)
https://stackoverflow.com/questions/21848277
复制相似问题