Jump to content

Problem with loading rss feed


Guest littlerocketman

Recommended Posts

Guest littlerocketman

Hello I have recently been using the php function, simplexml_load_file() in order to load an xml file and then display it. It was working perfectly until yesterday when it told me that my php server couldn't find the feed anymore. Here is the code and the resulting error message

	$xml = simplexml_load_file('http://feeds.feedburner.com/ace-bdf'); print_r($xml);

Warning: simplexml_load_file(http://feeds.feedburner.com/ace-bdf) [function.simplexml-load-file]: failed to open stream: HTTP request failed! HTTP/1.1 404 Not Found in C:\Program Files\XAMPP\xampp\htdocs\xampp\test\xmlfeed\index2.php on line 17Warning: simplexml_load_file() [function.simplexml-load-file]: I/O warning : failed to load external entity "http://feeds.feedburner.com/ace-bdf" in C:\Program Files\XAMPP\xampp\htdocs\xampp\test\xmlfeed\index2.php on line 17

This problem is extremely confusing because I can navigate to the feed (http://feeds.feedburner.com/ace-bdf) with my web browser without any problems. Also it was working perfectly a few days ago but stopped working even though I made zero modifications to the script.Any help would be greatly appreciated.

Link to comment
Share on other sites

i think their server is just having problems, you can use cURL to download the headers:$ch = curl_init('http://feeds.feedburner.com/ace-bdf');curl_setopt($ch,CURLOPT_RETURNTRANSFER,true);curl_setopt($ch,CURLOPT_HEADER,true);$content = curl_exec($ch);echo $contents;now you will see it gives an error that the document has moved to http://feedproxy.feedburner.com/ace-bdf, this however gives a 404 not found errorso i dont think theres something wrong with ure script, but im not sure how the browser can show that page anyway

Link to comment
Share on other sites

Archived

This topic is now archived and is closed to further replies.

×
×
  • Create New...