Page 1 of 1
Obtaining current time from a website
Posted: Tue Jun 26, 2007 2:46 pm
by gshepherd7
I have a script that locks out users based on the current time. My site is hosted by a third party and the server time is never accurate. Is there any other way that I can get the current time? From a website, network time protocol, etc...
Thanks for the help,
Guyy
Posted: Tue Jun 26, 2007 2:51 pm
by superdezign
The server time is inaccurate? Have you tried talking to the provider?
Posted: Tue Jun 26, 2007 3:02 pm
by gshepherd7
Yeah, but that's at least a 24-48 hour turnaround. I need this to be as rock solid as possible.
Posted: Tue Jun 26, 2007 5:27 pm
by feyd
Use one of the nuclear clock time servers.
Posted: Wed Jun 27, 2007 6:51 am
by gshepherd7
How do access those time servers?
Posted: Wed Jun 27, 2007 6:57 am
by feyd
Using NTP.
http://www.php-editors.com/contest/1/6-read.html may be useful, although I haven't used it.
Posted: Wed Jun 27, 2007 7:34 am
by volka
But of course each request to a ntp server will take time.
Posted: Wed Jun 27, 2007 1:59 pm
by RobertGonzalez
If you need rock solid performance, have you though of upgrading hosts?