Groups | Search | Server Info | Keyboard shortcuts | Login | Register [http] [https] [nntp] [nntps]
Groups > comp.lang.php > #4699
| From | Chris Riesbeck <Chris.Riesbeck@gmail.com> |
|---|---|
| Newsgroups | comp.lang.php |
| Subject | Re: php DB rotation |
| Date | 2012-01-31 13:00 -0600 |
| Message-ID | <9oqs35FeibU2@mid.individual.net> (permalink) |
| References | <jgiei7luda9lq290p89oabdnaa74kuqut5@4ax.com> <4f27b317$0$5046$a8266bb1@newsreader.readnews.com> |
On 1/31/2012 3:23 AM, Denis McMahon wrote: > 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. Having just read this same poster ask the same question on comp.lang.java.programmer, but claiming it was for a Java controller, I'm guessing troll.
Back to comp.lang.php | Previous | Next — Previous in thread | Find similar | Unroll thread
php DB rotation Jim Lee <jimlee2907@yahoo.com> - 2012-01-30 18:05 -0800
Re: php DB rotation Michael Fesser <netizen@gmx.de> - 2012-01-31 04:36 +0100
Re: php DB rotation Jim Lee <jimlee2907@yahoo.com> - 2012-01-30 20:03 -0800
Re: php DB rotation Captain Paralytic <paul_lautman@yahoo.com> - 2012-01-31 02:25 -0800
Re: php DB rotation The Natural Philosopher <tnp@invalid.invalid> - 2012-01-31 14:00 +0000
Re: php DB rotation "M. Strobel" <sorry_no_mail_here@nowhere.dee> - 2012-01-31 09:38 +0100
Re: php DB rotation Denis McMahon <denismfmcmahon@gmail.com> - 2012-01-31 09:23 +0000
Re: php DB rotation Chris Riesbeck <Chris.Riesbeck@gmail.com> - 2012-01-31 13:00 -0600
csiph-web