I am running a LMS (Learning Management System) online, and it requires running a file named 'training/admin/cli/cron.php' every minute. The problem is my host only allows for a cron job to be ran every 30 minutes.
I tried to create a file named cron_script.php with the following and set it to run every 30 minutes:
<?php
set_time_limit(0);
$turns=0;
while($turns < 30) {
exec('training/admin/cli/cron.php');
sleep(60);
$turns++;
}
?>
However it only seems to run once. I am not even sure how to troubleshoot the error message as I can't print anywhere since it is being ran by cron.