\n";
foreach ($rss->items as $item){
$x++;
if($x>3)
break;
$href = $item['link'];
$title = $item['title'];
$html .="
$title";
}
$html .='
More news...
';
print $html;
}
else{
$html = "
An error occurred while trying to fetch the latest Nagios news. Stay on top of what's happening by visiting http://www.nagios.org/news.
";
print $html;
}
}
?>