Unable to find the wrapper "https" - did you forget to enable it when you configured PHP?
答案:1 悬赏:10 手机版
解决时间 2021-01-23 05:22
- 提问者网友:姑娘长的好罪过
- 2021-01-22 12:57
Unable to find the wrapper "https" - did you forget to enable it when you configured PHP?
最佳答案
- 五星知识达人网友:孤独的牧羊人
- 2021-01-22 13:30
1、去掉;以后是否重启php。
2、打印phpinfo() 查看openssl模块是否存在。追问
这个吗?有的。
电脑都重启了。。。
追答服务器是IIS吗?IIS貌似不支持,相见 php手册file_get_contents
When using SSL, Microsoft IIS will violate the protocol by closing the connection without sending a close_notify indicator. PHP will report this as "SSL: Fatal Protocol Error" when you reach the end of the data. To work around this, the value of error_reporting should be lowered to a level that does not include warnings. PHP can detect buggy IIS server software when you open the stream using the https:// wrapper and will suppress the warning. When using fsockopen() to create an ssl:// socket, the developer is responsible for detecting and suppressing this warning.
使用SSL时,微软IIS将违反协议不发送close_notify指示器关闭连接。PHP将报告为“SSL协议:致命错误当你到年底的数据。为了解决这个问题,对error_reporting值应降低到一个水平,不包括警告。PHP可以检测车的IIS服务器软件当你打开流使用HTTPS:/ /包装将抑制警告。当使用fsockopen()创建SSL:/ /插座,开发商负责检测和抑制这一警告。
修改为curl 或者 fsockopen试试!追问服务器是Apache
2、打印phpinfo() 查看openssl模块是否存在。追问
这个吗?有的。
电脑都重启了。。。
追答服务器是IIS吗?IIS貌似不支持,相见 php手册file_get_contents
When using SSL, Microsoft IIS will violate the protocol by closing the connection without sending a close_notify indicator. PHP will report this as "SSL: Fatal Protocol Error" when you reach the end of the data. To work around this, the value of error_reporting should be lowered to a level that does not include warnings. PHP can detect buggy IIS server software when you open the stream using the https:// wrapper and will suppress the warning. When using fsockopen() to create an ssl:// socket, the developer is responsible for detecting and suppressing this warning.
使用SSL时,微软IIS将违反协议不发送close_notify指示器关闭连接。PHP将报告为“SSL协议:致命错误当你到年底的数据。为了解决这个问题,对error_reporting值应降低到一个水平,不包括警告。PHP可以检测车的IIS服务器软件当你打开流使用HTTPS:/ /包装将抑制警告。当使用fsockopen()创建SSL:/ /插座,开发商负责检测和抑制这一警告。
修改为curl 或者 fsockopen试试!追问服务器是Apache
我要举报
如以上问答信息为低俗、色情、不良、暴力、侵权、涉及违法等信息,可以点下面链接进行举报!
大家都在看
推荐资讯