<?php
require 'rssmulti.php';
$rss = new RSS($file);
if(!$rss->Error) {
print '<h2><img src="' . $rss->Image['url'] . '" title="' . $rss->Image['title'] . '" alt="' . $rss->Image['description'] . '" />' . $rss->Channel['title'] . '</h2>';
print '<h4>' . $rss->Channel['description'] . '</h4>';
print '<ul>';
while($rss->next_item()){
print '<li><a href="' . $rss->Item['link'] . '">' . $rss->Item['title'] . "</a><br /><em>" . $rss->Item['description'] . "</em></li>\n";
}
print '</ul>';
} else {
die('Error in instantiating RSS class: ' . $rss->Error);
}
?>
|