first commit
This commit is contained in:
15
front/cronjob_task.php
Normal file
15
front/cronjob_task.php
Normal file
@ -0,0 +1,15 @@
|
||||
<?php
|
||||
// cronjob_task.php
|
||||
require_once '../functionsophalglpi.php';
|
||||
|
||||
include ('../inc/includes.php');
|
||||
|
||||
|
||||
// Example: Log current date and time to a file
|
||||
$logFile = 'cron_log.txt';
|
||||
$currentDate = date('Y-m-d H:i:s');
|
||||
file_put_contents($logFile, "Cron ran at: $currentDate :". close_hr_tickets(), FILE_APPEND);
|
||||
|
||||
echo "Cron executed successfully.\n";
|
||||
?>
|
||||
|
||||
Reference in New Issue
Block a user