$timestamp = date('Y-m-d H:i:s'); // Log the start of this read logWrite("####################################"); logWrite("Begin batch send: {$timestamp}"); logWrite("------------------------------------"); // Get the queue and counts // Log our counts logWrite("Scheduled campaign"); //logWrite("") $msg = new Application_Model_Message(); // $arr = $msg->scheduledCampaignsSend(); echo date('Y-m-d H:i:s') . '<br>'; // echo '<pre>'; print_r($arr); //$msg->weeklycampToqueue($arr); //$msg->weeklycampDirectSend($arr); $rs = $msg->push_data_to_aggregator(); // $msg->direct_send($rs); echo '<pre>'; print_r($rs); logWrite("\n---------------------"); logWrite("Scheduled: {$timestamp}"); logWrite("####################################\n"); return 0; /** * Simply writes a log message line to the log file * * @param string $msg The message to write */ function logWrite($msg) { global $logfile;