可能重复:
参考 - 这个符号在PHP中意味着什么?
我想知道@PHP语言是什么意思.我见过有人在用
$connect = @mysql_query('sql query here');
Run Code Online (Sandbox Code Playgroud)
不知道为什么.有人可以帮我解释一下吗?
我只是用a file_get_contents()来获取像这样的用户的最新推文:
$tweet = json_decode(file_get_contents('http://api.twitter.com/1/statuses/user_timeline/User.json'));
Run Code Online (Sandbox Code Playgroud)
这在我的localhost上工作正常但是当我将它上传到我的服务器时它会抛出此错误:
警告: file_get_contents(http://api.twitter.com/1/statuses/user_timeline/User.json)[function.file-get-contents]:无法打开流:HTTP请求失败!HTTP/1.0 400错误请求...
不确定是什么导致它,也许我需要在我的服务器上设置php配置?
提前致谢!