PHP函数file_get_contents()使用 https 协议时报错:SSL operation failed
场景:file_get_contents() 函数是用于将文件的内容读入到一个字符串中,是读取文件内容常用的函数之一。但是有时在服务器上使用file_get_contents() 函数请求https 协议的url文件时会报错误,无法正确读取文件内容,查看log日志,日志内容类似如下:PHP Warning: file_get_contents(): Failed to enable cry...
2015-10-11