首页 > Web开发 > 详细

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

时间:2018-03-29 01:21:02      阅读:218      评论:0      收藏:0      [点我收藏+]

使用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 的网站都要开启

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

原文:https://www.cnblogs.com/lxwphp/p/8667205.html

(0)
(0)
   
举报
评论 一句话评论(0
关于我们 - 联系我们 - 留言反馈 - 联系我们:wmxa8@hotmail.com
© 2014 bubuko.com 版权所有
打开技术之扣,分享程序人生!