地址木有问题 我可以肯定是转码的问题。因为拿到URL直接放入浏览器中是有效的。Warning: file_get_contents(https://graph.qq.com/oauth2.0/token?gran=丰富&client_id=100233125&redirect_uri=http%3A%2F%2Fwww.okggd.com%2Fqq_login%2Fqqlogin.php%3Fa%3Dcallback) [function.file-get-contents]: failed to open stream: No error
你那个“丰富”应该是关键词吧,拼接URL的时候单独对关键词编码试试
file_get_contents打开不正常