Page 1 of 1

Execute code when date changes?

Posted: Thu Jul 13, 2006 1:07 pm
by Addaone
Is there a way to run some code when the date changes? I need to run some housekeeping code when either the date changes or the time is midnight. I'm a n00b...thanks in advance.

Posted: Thu Jul 13, 2006 1:10 pm
by Luke
Well... you can run a maintenance script that basically checks whether a certain amount of time has passed, but in order for it to work, somebody or something has to execute it. (IE: visit your site)

Posted: Thu Jul 13, 2006 2:55 pm
by Weirdan
or you can use cron