I was using some code I knocked up to parse some podcast feeds and only get the first episode and in the past week, presumably due to changes in the feeds, it simply stopped working…

The code is as follows and I’ve tried many things after reading the PHP docs to get it working again but I seem to be going down a rabbit hole of making things worse…

Anyone able to help?
Thank you

header('Content-Type: application/xml');
$output="<rss xmlns:media="" xmlns:itunes="" version="2.0">";
/* IGN */
$xmlIGN = simplexml_load_file('');
$IGN = ($xmlIGN->channel->item[0]);
print_r ($output);
print_r ('<channel>');
print_r ($IGN->asXML());
print_r ('</channel></rss>');

After throwing in some test tags it appears to be erroring at the simplexml_load_file but uncertain why…

Edit: Added picture of active PHP extensions
enter image description here

Source link

By Ajay Kumar Verma

techopenion is the one stop solution of all your information needs. Get everything from latest tech updates to latest gadgets in technology.

Leave a Reply

Your email address will not be published. Required fields are marked *