Zend_Registry::set('config', $config->production); // Because our models need it this way // Get the messages model $message = new Application_Model_Message(); logWrite("----------------------"); logWrite("BirthdayUpdate Start: {$timestamp}"); $message->selectbd(); logWrite("BirthdayUpdate End: {$timestamp}"); logWrite("\n------------------------------------"); // Set up our current timestamp $timestamp = date('Y-m-d H:i:s'); // Log the start of this read logWrite("####################################"); logWrite("Begin batch send: {$timestamp}"); logWrite("------------------------------------"); if ($message->queueBirthDayMessage()) { logWrite("Birth day messages are queueing."); } else { logWrite("Birth day messages can not be queued."); } // Set up our current timestamp for closing out $timestamp = date('Y-m-d H:i:s'); // Log the end of this send logWrite("\n---------------------"); logWrite("Process complete\nEnd birth day message set: {$timestamp}"); logWrite("####################################\n"); return 0; /** * Simply writes a log message line to the log file * * @param string $msg The message to write