Hey,
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.
Hey,
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.
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.
Use a script on Google AppEngine to "ping" yours (Scheduled Tasks to be more precise). It's free :-)
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.