Thursday, January 5, 2012

PHP file_get_contents() error, openssl

If PHP is throwing the error below its because protocols other than http is not allowed.

Warning: file_get_contents() [function.file-get-contents]: Unable to find the wrapper "https" - did you forget to enable it when you configured PHP? in ...

To allow other protocols the php_openssl extension must exist and enabled.

To enable go to php.ini and uncomment it or if using WAMP go to the PHP folder, then PHP extensions and check php_openssl


Problem Solved.

No comments:

Post a Comment