|
Posted by dkruger on 08/03/07 14:20
On Aug 2, 4:12 pm, ashore <shor...@gmail.com> wrote:
> Folks, I need to find and synch some php scripts to a NTP service
> somewhere. I'll appreciate any info on just where/how?
>
> -AS
the ntp daemon is really not complicated at all to setup, if you have
root access to access the server, you can find a lot of simple guides
to get your server setup to sync its time. If you do not have root
access and can not get those that do have it to setup an accurate
time, the previous poster is right, I would look for a new server.
Perhaps I misunderstood a little regarding your subject and message,
but a time sync would mean to me, and probably 99% of others out there
that you want to set the time on your host server to some external
source, not just display some accurate or use said accurate time in
your scripts.
However, if you are wanting to display an accurate time in yoru
scripts for some other time zone or something, ntp is not the best
choice for accomplishing that to just show in your scripts. NTP
should be used to get an accurate time on your server itself, where
the daemon runs constantly and updates its time based on one or more
sources 24x7. You could then use a couple of functions to get a
different time if desired with date, mktime, and time, if for example
you wanted to use a time from a different timezone then your current
hosting server.
Navigation:
[Reply to this message]
|