CVS: phpweather db_updater.php,1.6,1.7
Brought to you by:
iridium
From: Martin G. <gim...@us...> - 2002-03-25 23:33:32
|
Update of /cvsroot/phpweather/phpweather In directory usw-pr-cvs1:/tmp/cvs-serv12552 Modified Files: db_updater.php Log Message: Nicer output. When we run this from a cronjob, we can just redirect it to /dev/null, but it's nice to see how it goes when run by hand. Index: db_updater.php =================================================================== RCS file: /cvsroot/phpweather/phpweather/db_updater.php,v retrieving revision 1.6 retrieving revision 1.7 diff -u -3 -r1.6 -r1.7 --- db_updater.php 25 Mar 2002 20:58:08 -0000 1.6 +++ db_updater.php 25 Mar 2002 23:33:29 -0000 1.7 @@ -31,11 +31,11 @@ $db = new db_layer(array()); if ($db->db->connect()) { + echo "Connected to database - updating METARs...\n"; $db->db->update_all_metars($fn); - exit(0); + echo "Done - database updated.\n"; } else { echo "An error occurred while connecting to the database!\n"; - exit(1); } ?> |