Simulate Cron jobs using PHP
P粉207483087
P粉207483087 2023-09-04 14:03:57
0
1
423

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.

P粉207483087
P粉207483087

reply all (1)
P粉475315142

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.

    Latest Downloads
    More>
    Web Effects
    Website Source Code
    Website Materials
    Front End Template
    About us Disclaimer Sitemap
    php.cn:Public welfare online PHP training,Help PHP learners grow quickly!