Call PHP script every minute

I want to call a PHP script every minute. My script on my web server is about 90 seconds. I thought of doing this with cronjobs, but I have to pay for this service. Is there any other possibility?

Many thanks.

+3
source share
3 answers

Use the script in Google AppEngine to fine tune the "ping" ( "Scheduled Tasks"). It's free: -)

+7
source

Not really. You can receive a script call 60 seconds after its completion. But if the script fails, it will not restart.

Something like sleep (60 * 1000) to make him sleep at 60, and then simply either call the page again or run the script from top to top.

+3
source

Try cron online services . This is more or less the same jldupont, though.

Depending on your php setting, you may run the script with

php /wherever/yourscript.php </dev/null &>/dev/null 

command line from inside php.

0
source

Source: https://habr.com/ru/post/1309898/


All Articles