I am running an LMS (Learning Management System) online and it needs to run a file called "training/admin/cli/cron.php" every minute. The problem is that my host only allows cron jobs to run every 30 minutes.
I tried creating a file called cron_script.php with the following content and setting it to run every 30 minutes:
But it only seems to run once. I don't even know how to fix the error message since it is run by cron so I can't print it anywhere.
this is possible. Because the default run time limit is 30 seconds. Use this functionhttps://www.php.net/manual/en/ function.set-time-limit.phpOr modify the "max_execution_time" value of the php.ini file.