function save_email($email) { $path = "my_subsribes.777"; $pf = fopen($path, 'a') or die ("ERROR: 777 - Please contact administrators."); date_default_timezone_set('Europe/Belgrade'); $current_date = date("d. m. Y. H:i:s"); $email = $current_date . ' - ' . $email . PHP_EOL; fwrite($pf, $email); fclose($pf); }