Revision: 4987
Initial Code
Initial URL
Initial Description
Initial Title
Initial Tags
Initial Language
at February 1, 2008 16:25 by fritz
Initial Code
<? $url = 'http://www.weatheroffice.gc.ca/rss/city/on-7_e.xml'; $num_items = 1; //$rss = fetch_rss( $url ); $rss = fetch_rss($url); $items = array_slice($rss->items, 0, $num_items); echo "Channel Title: " . $rss->channel['title'] . "<p>"; echo "<ul>"; foreach ($rss->items as $item) { $href = $item['link']; $title = $item['title']; echo "<li><a href=$href>$title</a></li>"; } echo "</ul>"; ?>
Initial URL
Initial Description
need the magpie code
Initial Title
RSS Code with Magpie RSS Feeder
Initial Tags
php
Initial Language
PHP