Unable to find the wrapper ”https” - did youforget to enable it when you configured PHP?

这是在Windows的命令行下用php symfony new myproject命令创建一个新的工程出现的,网上查的全部都是到php.ini中把extension=php_openssl.dll前面的“;”删掉就行了


去掉;以后是否重启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试试!

评论
添加红包

请填写红包祝福语或标题

红包个数最小为10个

红包金额最低5元

当前余额3.43前往充值 >
需支付:10.00
成就一亿技术人!
领取后你会自动成为博主和红包主的粉丝 规则
hope_wisdom
发出的红包
实付
使用余额支付
点击重新获取
扫码支付
钱包余额 0

抵扣说明:

1.余额是钱包充值的虚拟货币,按照1:1的比例进行支付金额的抵扣。
2.余额无法直接购买下载,可以购买VIP、付费专栏及课程。

余额充值