Error in PHP on https wrapper

戏子无情 提交于 2019-12-23 05:50:46

问题


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

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


回答1:


I think what you can try is to:

Install php5-openssl Restart Apache afterwards.

It will likely to solve that problem.

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! :)




回答2:


You need to enable php-openssl in your WAMP.

For this, click on the WAMP icon in your systemtray. Click on PHP. Then hover the PHP Extensions. Then click on the php_openssl



来源:https://stackoverflow.com/questions/37639676/error-in-php-on-https-wrapper

易学教程内所有资源均来自网络或用户发布的内容,如有违反法律规定的内容欢迎反馈
该文章没有解决你所遇到的问题?点击提问,说说你的问题,让更多的人一起探讨吧!