Page 1 of 1
Timer
Posted: Wed Jan 21, 2009 8:43 pm
by Whear
I've been looking for a way to execute a script every 24 hours with no outside variables.
Is there a way to do this in PHP?
Re: Timer
Posted: Wed Jan 21, 2009 8:47 pm
by Burrito
not sure what you mean 'no outside variables'
but have a look at cron
Re: Timer
Posted: Wed Jan 21, 2009 8:48 pm
by Whear
As in, if no one ever visited the website, it would still execute the commands regardless.
Re: Timer
Posted: Wed Jan 21, 2009 8:50 pm
by Burrito
yeah...then
cron is what you want. You can just run your php from the cli.
Re: Timer
Posted: Wed Jan 21, 2009 8:54 pm
by Whear
I looked at that link yet I couldn't find exactly how to edit the cron file/setting
Re: Timer
Posted: Wed Jan 21, 2009 8:56 pm
by Burrito