📅  最后修改于: 2022-03-11 14:54:07.755000             🧑  作者: Mango
$time = date("G:i:s");
$entry = "Información guardada a las $time.\n";
$file = "/var/www/testdir/test.cron.txt";
$open = fopen($file,"a");
if ( $open ) {
fwrite($open,$entry);
fclose($open);
}