set_feed_url($feed_url); // Tell SimplePie we're done setting options, we're ready to process, and use an "if" condition to ensure it was successful. if ($feed->init()) { // Display the feed header. echo '

' . $feed->get_title() . '

'; // Begin our list tag echo ''; } // If the feed did not process successfully... else { // Kill the script, and display SimplePie's error message. die($feed->error()); } } /////////////////////////////////////////////////////////////////////////////////////////////////////////////////////// // Call the function for each feed you want to display. display_feed('http://images.apple.com/main/rss/hotnews/hotnews.rss'); display_feed('http://digg.com/rss/containertechnology.xml'); display_feed('http://feeds.tuaw.com/weblogsinc/tuaw'); ?>