配置QQ第三方登陆网站报错如下:
Warning: file_get_contents(https://graph.qq.com/) [function.file-get-contents]: failed to open stream: Invalid argument inD:\wwwroot\webstit\test.phpon line4
用file_get_contents()读取返回数据,但是老是读不到数据。
[function.file-get-contents]: failed to open stream: Invalid argument in报错解决方法:
经检查是PHP 的配置环境的问题。
windows下处理方法:
c:\windows\php.ini
extension=php_openssl.dll 把前的;去掉,重启iis服务。
linux下处理方法:
/etc/php.ini
extension=php_openssl.dll 把前的;去掉,重启apache服务。