Reputation: 5360
I want to call a php script every minute. My scriptruntime on my webserver is about 90 sec. I thought doing it with cronjobs but i have to pay for that service. Is there an other possibility?
Thanks a lot.
Upvotes: 3
Views: 1894
Reputation: 143061
Try some online cron services. This is more or less the same jldupont suggested, though.
Depending on the php setup you might be able to launch your script with
php /wherever/yourscript.php </dev/null &>/dev/null
command line from inside php.
Upvotes: 0
Reputation: 96716
Use a script on Google AppEngine to "ping" yours (Scheduled Tasks to be more precise). It's free :-)
Upvotes: 7
Reputation: 31785
Not really. You could have the script call itself 60 seconds after it completes. But if the script crashes, it won't restart.
Something like sleep(60*1000) to cause it to sleep for 60 and then just either call the page again, or start the script over at the top.
Upvotes: 3