Nothing ... still not working ...
I made these 2 files. The first writes the timestamp in a file.
$nome_file_index = $_SERVER['DOCUMENT_ROOT']."/cron_test.txt";
chmod($nome_file_index, 0666);
$file = fopen($nome_file_index, "w") ;
fwrite($file, time());
fclose($file);
It runs via cronjob every 30 minutes.
0 * * * * /usr/local/bin/php /home/pornupda/public_html/cron_test.php
30 * * * * /usr/local/bin/php /home/pornupda/public_html/cron_test.php
The second reads the file with the date.
$filename = "cron_test.txt";
$handle = fopen($filename, "r");
$crontest = fread($handle, filesize($filename));
echo 'Last cron '.date ("D d M Y H:i", $crontest);
It does not work ... That damned date never changes.