📜  cron.php 代码示例

📅  最后修改于: 2022-03-11 14:54:07.755000             🧑  作者: Mango

代码示例1
$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);
}