file_get_contents () failed to open stream:

0 Cevap

Ancak ben şu uyarıyı alıyorum, bir twitter yem kapmak için file_get_contents () kullanmaya çalışıyorum:

failed to open stream: HTTP request failed! HTTP/1.1 400 Bad Request

Benim kod:

$feed = 'http://twitter.com/statuses/user_timeline.rss?screen_name=google&count=6';
$tweets = file_get_contents($feed);

Ben sadece test uğruna google kullanıyorum. allow_url_fopen benim php.ini dosyasında etkindir.

Herhangi bir fikir ne yanlış olabilir?

0 Cevap