#!/usr/bin/php4 $upd_intl*60, # $upd_intl*60); if (!$line["last_updated"] || time() - strtotime($line["last_updated"]) > ($upd_intl * 60)) { print "Updating...\n"; update_rss_feed($link, $line["feed_url"], $line["id"], true); } else { print "Update not needed.\n"; } } print "Sleeping for " . SLEEP_INTERVAL . " seconds...\n"; sleep(SLEEP_INTERVAL); } db_close($link); ?>