Código PHP:
<?
$file = "http://manicomio.bitacoras.com/rdf.xml";
$byte = "10000";
$ofile = @fopen("$file", "r");
$contents = @fread ($ofile, $byte);
@fclose($ofile);
if(!$contents)
{
echo "<p>\nUnable to Get XML/RSS data. Fatal Error.\n</p>";
exit;
}
preg_match_all ("'<title>(.*?)</title>'si", $contents, $titles);
preg_match_all ("'<link>(.*?)</link>'si", $contents, $link);
preg_match_all ("'<description>(.*?)</description>'si",$contents,$description);
$count = count($titles[1]);
$link = $link[1];
$titles = $titles[1];
$description = $description[1];
echo "<p>\n";
for($i = 0; $i <= $count; $i++)
{
echo "<a href=\"$link[$i]\">$titles[$i]</a>\n<br />$description[$i]\n<br/>\n";
}
echo "</p>";
?>
¿Qué se puede hacer?