只要是使用函数file_get_contents访问 https 的网站都要开启

使用file_get_contents();报错failed to open stream: Unable to find the socket transport "ssl" - did you forget to enable it when you configured PHP? in D:\phpstudy\phpStudy\WWW\queryPhoneNumber\libs\httpRequest.php on line 35 将php.ini中的 extension=php_openssl.dll 开启就可以了,只要是使用函数file_get_contents访问 https 的网站都要开启

posted @ 2018-03-28 23:35  码农编程进阶笔记  阅读(34)  评论(0)    收藏  举报
返回顶部 有事您Q我