magpierss RSS feed display example
URL: http://programming.linux.com/article.pl?sid=05/05/24/1337210
for full html content: $content = $item['content']['encoded'];
Copy this code and paste it in your HTML
<?php
require_once('magpierss/rss_fetch.inc');
$rss = fetch_rss('http://www.newsforge.com/index.rss');
echo "<a href=".$rss->channel['link']."><B>".$rss->channel[ 'title']."</B></a>";
foreach ($rss->items as $item) {
$href = $item['link'];
$title = $item['title'];
$desc = $item['description'];
echo "<P><a href=$href>$title</a><BR>";
if($desc)
}
?>
Report this snippet