On Mon, 30 Jan 2012 18:05:56 -0800, Jim Lee wrote:
> the first way check timestamp have a drawback when server's time is not
> set to correct time ...
> the second way is a better solution, but request additional setup - cron
> job
A cron job running from the server clock will not be any more accurate
than using the server's time in PHP or in the database itself.
If the server clock is wrong, the cron job will update the text file at
the wrong time anyway. As both methods rely on the server clock being
correct, I'd go with checking the time when you write to the table.
You don't have to wait until the day you're going to start populating it
to create the table either.
Rgds
Denis McMahon