Re: [PHP] Run script every 30 seconds
- From: ceo@xxxxxxxxx ("Richard Lynch")
- Date: Mon, 30 Oct 2006 15:30:33 -0600 (CST)
On Mon, October 30, 2006 11:29 am, Ahmad Al-Twaijiry wrote:
I have a script that I want it to run every 30 seconds, the problem is
that cronjob can run every 1 minute only, do you have any solution ?
Run a script that never quits with:
http://php.net/usleep
while (true){
//your script here
usleep(30000); //30000? rtfm.
}
It won't really really be every 30 seconds, because the script itself
takes time, but it's about as close as you are likely to get without a
ton of probably un-needed work...
--
Some people have a "gift" link here.
Know what I want?
I want you to buy a CD from some starving artist.
http://cdbaby.com/browse/from/lynch
Yeah, I get a buck. So?
.
- References:
- Run script every 30 seconds
- From: "Ahmad Al-Twaijiry"
- Run script every 30 seconds
- Prev by Date: Re: [PHP] only one at atime
- Next by Date: Re: [PHP] str_replace on words with an array
- Previous by thread: Re: [PHP] Run script every 30 seconds
- Next by thread: only one at atime
- Index(es):
Relevant Pages
|