I’m not sure if this is the correct category, if it’s incorrect please let me know.
I’m using a PHP script to get a user’s timeline via RSS and display the latest tweet on that user’s website. I’m using the same script on several different servers and it’s working perfectly. On one of the server’s however, one which is hosting ten different websites, I’m receiving the following error message for all of them: (asterisks added)
file_get_contents(https://api.twitter.com/1/statuses/user_timeline.rss?screen_name=the*****) [function.file-get-contents]: failed to open stream: Connection refused in /home/******/public_html/responsive/inc/twitterpost.php on line 55
I’ve tried WGET from the same server and receive the following error, leading me to believe this server has had it’s IP address blocked:
Resolving api.twitter.com… 188.8.131.52, 184.108.40.206, 220.127.116.11
Connecting to api.twitter.com|18.104.22.168|:443… failed: Connection refused.
Connecting to api.twitter.com|22.214.171.124|:443… failed: Connection refused.
Connecting to api.twitter.com|126.96.36.199|:443… failed: Connection refused.
I’m using a cache file in order to limit the number of requests per hour and the same script works fine on my local machine as well as on different servers.
Thanks for any help you can provide!