functionbulksms () {Ignore_user_abort();//turn off the browser and the PHP script will continue to execute.Set_time_limit(0);//set_time_limit (0) allows the program to be implemented without restrictions$interval= 30;//run every 30s Do{ $BULKSMSOBJ=NewIModel (' BulkSMS '); $bulksmsRows=$BULKSMSOBJ->getobj (' status = 0 ', ' mobile '); if(!isset($bulksmsRows[' Mobile '])){ die(); } //$SYSOBJ = new Sys_class (); $SYSOBJ->send_sys (' Love more, line last week, Poly Discount, month and month. Full 66 yuan, minus 10 yuan, full 44 yuan, minus 5 yuan, there are coupons wayward send. Rob get is affordable, send home to call intimate, pay attention to i0537com public number supermarket take home. Unsubscribe back to TD ', $bulksmsRows [' Mobile ']); $BULKSMSOBJ->setdata (Array(' status ' = ' 1 ')); $BULKSMSOBJ->update (' mobile = '.$bulksmsRows[' Mobile ']); Sleep($interval);//Wait 5s} while(true); }
A simple PHP SMS Mass