I am creating a PHP web application and it is necessary to know what the current date / time is Can not depend on any web service I can use? I know that there will be some delay in reaching the web through the web service, but I am fine with something that is not accurate for the last millisecond.
Yes, get it from the public NTP server.
Look at a PHP implementation here:
Comments
Post a Comment