Hi, everybody.
After many years of having an RSS feed successfully displayed on a website, it recently stopped working.
It looks like the company that was supplying the feed changed the URL.
Previously, the feed address was:
http://feeds.sciencedaily.com/sciencedaily/space_time/space_exploration?format=xml
The new feed, from their website, is:
https://www.sciencedaily.com/rss/space_time/space_exploration.xml
The code snippet for the RSS parser, written in PHP, follows:
The die action always happens, indicating that the XML file could not be opened.
Any idea what the problem is?
Is it the XML, or the PHP code?
After many years of having an RSS feed successfully displayed on a website, it recently stopped working.
It looks like the company that was supplying the feed changed the URL.
Previously, the feed address was:
http://feeds.sciencedaily.com/sciencedaily/space_time/space_exploration?format=xml
The new feed, from their website, is:
https://www.sciencedaily.com/rss/space_time/space_exploration.xml
The code snippet for the RSS parser, written in PHP, follows:
Code:
$file = "https://www.sciencedaily.com/rss/space_time/space_exploration.xml"; . . . if (!($fp = fopen($file, "r"))) { die("could not open XML input"); }
Any idea what the problem is?
Is it the XML, or the PHP code?
Comment