I have the following piece of PHP code:

$baseURL=' http://twitter.com/statuses/followers/';
$name='eastsidedev';
$followersURL=$baseURL.$name.".json";
$response = file_get_contents($followersURL);
....

The script is on a Linux server. When I run it using my local Firefox
browser, I get the following response:

Warning: file_get_contents( 
http://twitter.com/statuses/followers/eastsidedev.json)
[function.file-get-contents]: failed to open stream: No such file or
directory in /home/tools/public_html/twCollection/getFollowers.php on
line 31
Error getting a response from Twitter

But if I use my local Firefox browser, and point it to the following
URL:

http://twitter.com/statuses/followers/eastsidedev.json

I do get a response, and the browser prompts me to save it locally. I
have used file_get_contents in the past successfully. Any ideas? the
user does not have statuses protected.

Reply via email to