/ Published in: PHP
                    
                                        need the magpie code
                
                            
                                Expand |
                                Embed | Plain Text
                            
                        
                        Copy this code and paste it in your HTML
 <? $url = 'http://www.weatheroffice.gc.ca/rss/city/on-7_e.xml'; $num_items = 1; //$rss = fetch_rss( $url ); $rss = fetch_rss($url); 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>"; ?>
Comments
                    Subscribe to comments
                
                