Advertisement
stoneman

php subscribe

Feb 21st, 2015
195
0
Never
Not a member of Pastebin yet? Sign Up, it unlocks many cool features!
PHP 0.33 KB | None | 0 0
  1.     function save_email($email)
  2.     {
  3.         $path = "my_subsribes.777";
  4.         $pf = fopen($path, 'a') or die ("ERROR: 777 - Please contact administrators.");
  5.         date_default_timezone_set('Europe/Belgrade');
  6.             $current_date = date("d. m. Y. H:i:s");
  7.         $email = $current_date . ' - ' . $email . PHP_EOL;
  8.         fwrite($pf, $email);
  9.         fclose($pf);
  10.     }
Advertisement
Add Comment
Please, Sign In to add comment
Advertisement