예제 #1
0
function main()
{
    global $log;
    //this script can take a long time to run
    //we don't want it ending early
    set_time_limit(0);
    $timer = new timer();
    $log->writeLine("============================================");
    $log->writeLine("Begin upload processing.");
    $timer->start();
    //process all files in the upload directory
    do_process();
    $timer->stop();
    $log->writeLine("--------------------------------------------");
    $log->writeLine("End upload processing. Took " . $timer->taken() . " seconds.");
    $log->writeLine("============================================");
    $log->saveLog("blah.txt");
}