Example of usage can be seen at http://www.karinboye.se/index.shtml (in Swedish).
require_once 'magpierss/rss_fetch.inc';
$url = 'http://your_disqus_id.disqus.com/latest.rss'; $rss = fetch_rss($url); echo "Site: ", $rss->channel['title'], "<br>"; foreach ($rss->items as $item ) { $title = $item['title']; $text = $item['description']; $creator = $item['dc']['creator']; $date = $item['dc']['pubdate']; $url = $item[link]; echo "<a href=$url>$title</a><br>"; echo "$text<br>"; echo "$creator<br>"; echo "$date<br>"; }
No comments:
Post a Comment