Simple RSS agregator


get($url)) { echo "$rs[title]
\n"; echo "$rs[description]
\n"; echo "\n"; } else { echo "Sorry: It's not possible to reach RSS file $url\n
"; // you will probably hide this message in a live version } } // =============================================================================== // include lastRSS include "./rss-parser.php"; // List of RSS URLs $rss_left = array( 'http://freshmeat.net/backend/fm.rdf', 'http://slashdot.org/slashdot.rdf' ); $rss_right = array( 'http://www.freshfolder.com/rss.php', 'http://phpbuilder.com/rss_feed.php' ); // Create lastRSS object $rss = new lastRSS; // Set cache dir and cache time limit (5 seconds) // (don't forget to chmod cahce dir to 777 to allow writing) $rss->cache_dir = './temp'; $rss->cache_time = 1200; // Show all rss files echo "
"; foreach ($rss_left as $url) { ShowOneRSS($url); } echo ""; foreach ($rss_right as $url) { ShowOneRSS($url); } echo "
"; ?>