NTP服务器的php验证 [英] php validation for NTP server

查看:236
本文介绍了NTP服务器的php验证的处理方法,对大家解决问题具有一定的参考价值,需要的朋友们下面随着小编来一起学习吧!

问题描述

我想在php中添加NTP验证,任何人都可以帮助我吗?

I want to add NTP validation in php anyone can help me ?

NTP服务器的一些例子是: -

some of the example of NTP server are :-

nist1-ny.ustiming.org

nist1-nj.ustiming.org

nist1-pa.ustiming.org

time- a.nist.gov

time-b.nist.gov

nist1-ny.ustiming.org
nist1-nj.ustiming.org
nist1-pa.ustiming.org
time-a.nist.gov
time-b.nist.gov

推荐答案

NTP协议似乎是非常直接。

The NTP protocol seems to be pretty straight forward.

这里是一个声称能够从NTP服务器获取日期和时间的代码段。

Here is a code snippet that claims to be able to fetch the date and time from a NTP server.

我没有使用它的经验,但它看起来不错。

I have no experience with it, but it looks good.

这篇关于NTP服务器的php验证的文章就介绍到这了,希望我们推荐的答案对大家有所帮助,也希望大家多多支持IT屋!

查看全文
登录 关闭
扫码关注1秒登录
发送“验证码”获取 | 15天全站免登陆