Unable to find the wrapper “https” – did you forget to enable it when you configured PHP?

IMAG0659

When I try to connect to a website with SSL, I got this problem

Unable to find the wrapper “https” – did you forget to enable it when you configured PHP?

This is the method I call in my code.

$httpsfile = file_get_contents("https://customer.ccccc.com/");
I had to add the following line to my php.ini file located in xammp/php/php.ini.

extension=php_openssl.dll

2 thoughts on “Unable to find the wrapper “https” – did you forget to enable it when you configured PHP?”

Leave a Comment

Your email address will not be published. Required fields are marked *

Scroll to Top