/ Published in: PHP

for full html content: $content = $item['content']['encoded'];
Expand |
Embed | Plain Text
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) echo $desc; } ?>
URL: http://programming.linux.com/article.pl?sid=05/05/24/1337210
Comments
