I was just wondering . . . is there a way to tell Cron to run a certain script at a certain time ? I want to run one of my scripts (cleanup script), once a day at 4am.
Anyone know what Cron commands I need to program ? Thanks in advance
Have a script that checks the time, so in your case something like the following would work:
if (date("G") == 4)) // checks if it is 4 am { // execute script... }
Yes, but that wouldn't work if the page isn't visited.
I'm talking about the actual Cron commands too. I know how to do the PHP part.
I don't think that's possible.