I'm running a large script and sometimes it works fine and sometimes i get this error? i'm not sure why and i'll come to fixing that soon.
FIrst of all the code loops through an array of RSS feeds, if it fails it stops what i want it to do it if fails on one is to crarry on, is that possible?
Line 31 and 32 are this
$rss = simplexml_load_file("$feed");
foreach($rss->xpath('channel/item') as $item){
My error is this
Warning: simplexml_load_file() [function.simplexml-load-file]: http://syndication.apn.co.nz/rss/nzhrsscid_000000270.xml:1: parser error : Start tag expected, '<' not found in E:\wamp\www\scripts\cron_news.php on line 31
Warning: simplexml_load_file() [function.simplexml-load-file]: ‹ in E:\wamp\www\scripts\cron_news.php on line 31
Warning: simplexml_load_file() [function.simplexml-load-file]: ^ in E:\wamp\www\scripts\cron_news.php on line 31
Fatal error: Call to a member function xpath() on a non-object in E:\wamp\www\scripts\cron_news.php on line 32