Search code examples
phpfile-get-contents

Error in PHP on https wrapper


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?


Solution

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