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
Obtaining current time from a website
Moderator: General Moderators
-
gshepherd7
- Forum Newbie
- Posts: 3
- Joined: Tue Jun 26, 2007 2:42 pm
- superdezign
- DevNet Master
- Posts: 4135
- Joined: Sat Jan 20, 2007 11:06 pm
-
gshepherd7
- Forum Newbie
- Posts: 3
- Joined: Tue Jun 26, 2007 2:42 pm
-
gshepherd7
- Forum Newbie
- Posts: 3
- Joined: Tue Jun 26, 2007 2:42 pm
- feyd
- Neighborhood Spidermoddy
- Posts: 31559
- Joined: Mon Mar 29, 2004 3:24 pm
- Location: Bothell, Washington, USA
Using NTP.
http://www.php-editors.com/contest/1/6-read.html may be useful, although I haven't used it.
http://www.php-editors.com/contest/1/6-read.html may be useful, although I haven't used it.
- RobertGonzalez
- Site Administrator
- Posts: 14293
- Joined: Tue Sep 09, 2003 6:04 pm
- Location: Fremont, CA, USA