#!/usr/local/bin/php -q backup.sql" is all I can say. This script updates a version 2.1 installation of NISCA to version 2.2, and ONLY version 2.1. It alters your database, so be sure to back up your database before running it, usually by running "mysqldump stats > backup.sql". To restore this dump, you would do something like: echo y|mysqladmin drop DATABASE_NAME mysqladmin create DATABASE_NAME mysql DATABASE_NAME < backup.sql ...and be sure to redo the privileges the user NISCA connects as has to DATABASE_NAME if necessary. Okay, here endeth the comments; update away..... */ require_once("/etc/nisca/nisca.conf"); require_once($location["functions"]); set_time_limit(0); ///////////// THIS IS WHERE THE OLD STUFF STARTS! ///////////// // If you've already applied this file once, just comment out everything // from here down to the "NEW STUFF" line below with "/* */" // and run it again. if ($version != "2.1") { echo "\n\nSorry; you need to upgrade (or downgrade) from\n" . "v$version to v2.1 before running this... Dying.\n\n"; die; } ?> Okay, stand by; this shouldn't take long. (Any errors you see beyond this point are abnormal and should have some attention payed to them.)