I'm having trouble with this script. It works on my local server and test server, but doesn't seem to run correctly on my Rackspace server.
<?php
$path = "http://query.yahooapis.com/v1/public/yql?q=";
$path .= urlencode("SELECT * FROM feed WHERE url='http://feeds.feedburner.com/TMSEvents'");
$path .= "&format=json";
$feed = file_get_contents($path, true);
$feed = json_decode($feed); ?>
It is very simple, but I am getting the follow error message on the Rackspace server:
PHP Warning: file_get_contents(http://query.yahooapis.com/v1/public/yql?q=SELECT+%2A+FROM+feed+WHERE+url%3D%27http%3A%2F%2Ffeeds.feedburner.com%2FTMSEvents%27&format=json) [function.file-get-contents]: failed to open stream: HTTP request failed! HTTP/1.0 500 999 This page is currently unavailable
Anyone have any ideas why this would work on one server, but not on another? Thanks!