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

' . $apple->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($apple->error()); } /////////////////////////////////////////////////////////////////////////////////////////////////////////////////////// // Do it all over again with a new feed. $digg = new SimplePie(); $digg->set_feed_url('http://digg.com/rss/containertechnology.xml'); if ($digg->init()) { echo '

' . $digg->get_title() . '

'; echo ''; } else { die($digg->error()); } /////////////////////////////////////////////////////////////////////////////////////////////////////////////////////// // Do it all over again with a new feed. $tuaw = new SimplePie(); $tuaw->set_feed_url('http://feeds.tuaw.com/weblogsinc/tuaw'); if ($tuaw->init()) { echo '

' . $tuaw->get_title() . '

'; echo ''; } else { die($tuaw->error()); } ?>