0

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?

2

2 Answers 2

5

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

Sign up to request clarification or add additional context in comments.

Comments

2

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

7 Comments

Sorry but I am using PHP server and not Apache
So you are using WAMP on Windows Right?
What you can try is to delete the ; mark before extension=php_openssl.dll in PHP.INI if you are under Windows Environment
Yes Wamp on Windows
Here's one possible solution: So 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.
|

Your Answer

By clicking “Post Your Answer”, you agree to our terms of service and acknowledge you have read our privacy policy.

Start asking to get answers

Find the answer to your question by asking.

Ask question

Explore related questions

See similar questions with these tags.