When I want to scrap data from https site, I get this warning:
file_get_contents(): Unable to find the wrapper "https" - did you forget to enable it when you configured PHP? in C:\wamp\www\Demo\simple_html_dom.php on line 76 Warning: file_get_contents(
https://www.google.com.pk/?gws_rd=cr&ei=wqsUWObDHYbhvgTAworgBQ
): failed to open stream: No error in C:\wamp\www\Demo\simple_html_dom.php on line 76
I tried all the things like uncomment extension=php_openssl.dll
and On allow_url_include
. Is there something else that I can do?
Are you sure that you're editing the right php.ini file? Under WAMP there are two php.ini files one for the cli and one for apache.
Maybe your apache is compiled without the php-openssl lib. Could you provide your phpinfo() settings?