a while ago i did a quick news parser for a friend.
here is the code:
$ch = curl_init("http://feeds.energydigger.com/headlines.xml");
curl_setopt($ch, CURLOPT_RETURNTRANSFER, true);
curl_setopt($ch, CURLOPT_HEADER, 0);
$data = curl_exec($ch);
curl_close($ch);
$doc = new SimpleXmlElement($data, LIBXML_NOCDATA);
if(isset($doc->channel))
{
    parseRSS($doc);
}
function parseRSS($xml)
{
    $cnt = 3;
    for($i=0; $i<$cnt; $i++)
    {
    $url    = $xml->channel->item[$i]->link;
    $title  = $xml->channel->item[$i]->title;
    $desc = $xml->channel->item[$i]->description;
    $date = $xml->channel->item[$i]->pubDate;
    echo '<p><a href="'.$url.'">'.$title.'</a><br />'.$date.'</p>';
    }
}
this has been working perfect up till today and now i am getting a 500 server error on the page its trying to show the list.
Have i missed something obvious here or that anyone can spot easily
thanks in advance
PS i modified someones code i found a tutorial on
 
     
    