HTTP包装上PHP中的错误 [英] Error in PHP on https wrapper

查看:40
本文介绍了HTTP包装上PHP中的错误的处理方法,对大家解决问题具有一定的参考价值,需要的朋友们下面随着小编来一起学习吧!

问题描述

我遇到以下错误,并且正在使用WAMP并使用PHP 5.6.19版托管本地服务器

I am getting the following error and I am hosting the a local server using WAMP and using version 5.6.19 of PHP

警告:file_get_contents():无法找到包装器"https"-做到了 您忘了在配置PHP时启用它吗?

Warning: file_get_contents(): Unable to find the wrapper "https" - did you forget to enable it when you configured PHP?

推荐答案

我认为您可以尝试执行以下操作:

I think what you can try is to:

安装php5-openssl 然后重新启动Apache.

Install php5-openssl Restart Apache afterwards.

这可能会解决该问题.

还有另一个可能的解决方案: 您可以找到"php.ini"文件,并将其打开,然后找到以下行:extension = php_openssl.dll开头是否有分号?如果是,只需将其删除即可.

And there's also another possible solution: You can find the "php.ini" file, and open it, you will find the line: extension=php_openssl.dll And is there a semicolon at beginning? If yes, simply delete it and it will work.

如果这不起作用,或者您还有其他问题,请评论我,我会为您提供帮助! :)

If that doesn't work or you have further issues, comment me and I will help you! :)

这篇关于HTTP包装上PHP中的错误的文章就介绍到这了,希望我们推荐的答案对大家有所帮助,也希望大家多多支持IT屋!

查看全文
登录 关闭
扫码关注1秒登录
发送“验证码”获取 | 15天全站免登陆