Advertisement
GWibisono

cron job...

Oct 30th, 2013
87
0
Never
Not a member of Pastebin yet? Sign Up, it unlocks many cool features!
PHP 0.40 KB | None | 0 0
  1. function emailCron($title,$msg,$to,$from='cs@inibayiku.com')
  2. {
  3.     $type=1;
  4. /*
  5. type 1 (jadikan array)
  6. $ar=array('title'=>xxxx, 'from'=>xxx etc
  7. title, from, to, contents      
  8. */ 
  9.     $data=array('title'=>$title, 'contents'=>$msg,
  10.        'to'=>$to,'from'=>$from,'type'=>'pending');
  11.    
  12.     $t_detail=json_encode($data);
  13.     $ar=array('t_type'=>$type,'t_detail'=>$t_detail);
  14.     tableInsertData('task', $ar);  
  15. }
Advertisement
Add Comment
Please, Sign In to add comment
Advertisement