2011-01-30 79 views
0

我試圖從Twitter提要解析XML,它工作正常,突然我開始這樣的:使用simplexml_load_file未能打開流Http請求失敗

警告:使用simplexml_load_file(HTTP://search.twitter .com/search.atom?q =%23jan26): 無法打開流:HTTP請求失敗! HTTP/1.1 420未使用的/var/www/test.php 上線20

回答

2

我建議嘗試用捲曲,甚至來自同一IP瀏覽器作爲這個腳本runnign來看,在此請求,錯誤消息的正文。

但是這通常是速率限制的結果,這意味着你需要的頻率太高。 YOu可以看到類似的問題here

相關問題