<?php
// Try to load and parse RSS file
if ($rs = $rss->get('http://blog.lib.umn.edu/staff/magrath/index.rdf')) {
// Show website logo (if presented)
if ($rs[image_url] != '') {
echo "<A href=\"$rs[image_link]\"><img src=\"$rs[image_url]\" alt=\"$rs[image_title]\" vspace=\"1\" border=\"0\" /></A><br />\n";
}
// Show clickable website title
echo "<center><A href=\"$rs[link]\">$rs[title]</A></center>";
// Show website description
echo "$rs[description]<br />\n";
// Show last published articles (title, link, description)
echo "< UL >\n";
$num = 1;
foreach($rs['items'] as $item) {
if ($num <= 10) {
echo "\t<li><A href=\"$item[link]\">".$item['title']."</A><br />".$item['description']."</li>\n";
$num++;
}
}
//echo "< /UL >\n";
}
else {
//echo "Error: It's not possible to reach RSS file...\n";
}
?>
Posted by kilam002 at February 25, 2005 4:09 PM