php使用curl和file_get_contents无法抓取https网页
- 日期 : 2018-07-20
php使用curl和file_get_contents无法抓取https网页,出现如下错误:Warning: fopen() [function.fopen]: Unable to find the wrapper "https" - did you forget to enable it when you configured PHP?

说明php配置没有开启openssl扩展,windows下的PHP,只需要到php.ini中把extension=php_openssl.dll前面的;删掉,重启服务就可以了。linux下的PHP,就必须安装openssl模块,安装好了以后就可以访问了。

说明php配置没有开启openssl扩展,windows下的PHP,只需要到php.ini中把extension=php_openssl.dll前面的;删掉,重启服务就可以了。linux下的PHP,就必须安装openssl模块,安装好了以后就可以访问了。