Advertisement
Guest User

Untitled

a guest
Sep 22nd, 2017
61
0
Never
Not a member of Pastebin yet? Sign Up, it unlocks many cool features!
PHP 0.34 KB | None | 0 0
  1. $mailing_list = $list->generateList();
  2. $list_count = count($mailing_list);
  3. if($list_count > 0){
  4.     $thetime = time();
  5.     $list_file = 'list_' . $thetime . '.csv';
  6.     $list_file_url = 'lists/' . $list_file;
  7.     $handle = fopen($list_file_url, 'w');
  8.     foreach($mailing_list as $line){
  9.         fwrite($handle, implode(',', $line) ."\n");
  10.     }
  11. fclose($handle);
Advertisement
Add Comment
Please, Sign In to add comment
Advertisement