function doUpdate() { // Cache my del.icio.us bookmarks. $tmpfix ="http://timtux.net/inc/rssreader.php?feed=delicious"; $filename = "inc/cache-delicious.php"; $rsscontent = file_get_contents($tmpfix); if (is_writable($filename)) { $handle = fopen($filename, 'w+'); fwrite($handle, $rsscontent); fclose($handle); } // Cache my dugged stories. $tmpfix ="http://timtux.net/inc/rssreader.php?feed=digg"; $filename = "inc/cache-digg.php"; $rsscontent = file_get_contents($tmpfix); if (is_writable($filename)) { $handle = fopen($filename, 'w+'); fwrite($handle, $rsscontent); fclose($handle); } }