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

Advertisements

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

Leave a Reply

Fill in your details below or click an icon to log in:

WordPress.com Logo

You are commenting using your WordPress.com account. Log Out / Change )

Twitter picture

You are commenting using your Twitter account. Log Out / Change )

Facebook photo

You are commenting using your Facebook account. Log Out / Change )

Google+ photo

You are commenting using your Google+ account. Log Out / Change )

Connecting to %s