首页 >后端开发 >php教程 > 怎么得到 PING 反回的的值

怎么得到 PING 反回的的值

WBOY
WBOY原创
2016-06-13 12:42:53804浏览

如何得到 PING 反回的的值
如何得到 PING 反回的的值

<br />
文件 1.txt 内容是PING内容<br />
Pinging www.qq.com [14.17.32.211] with 32 bytes of data:<br />
Reply from 14.17.32.211: bytes=32 time=20ms TTL=53<br />
Reply from 14.17.32.211: bytes=32 time=13ms TTL=53<br />
Reply from 14.17.32.211: bytes=32 time=13ms TTL=53<br />
Reply from 14.17.32.211: bytes=32 time=13ms TTL=53<br />
Reply from 14.17.32.211: bytes=32 time=13ms TTL=53<br />
Reply from 14.17.32.211: bytes=32 time=13ms TTL=53<br />
Reply from 14.17.32.211: bytes=32 time=13ms TTL=53<br />
Reply from 14.17.32.211: bytes=32 time=12ms TTL=53<br />
Reply from 14.17.32.211: bytes=32 time=13ms TTL=53<br />
Reply from 14.17.32.211: bytes=32 time=12ms TTL=53<br />
Ping statistics for 14.17.32.211:<br />
    Packets: Sent = 10, Received = 10, Lost = 0 (0% loss),<br />
Approximate round trip times in milli-seconds:<br />
    Minimum = 12ms, Maximum = 20ms, Average = 13ms<br />

要用什么代码,得到 Pinging (*值)[*值] with 32 bytes of data: (想得到 www.qq.com和14.17.32.211 )
最后再得到 
Sent =*值
Received =*值
Lost =*值
 Minimum =*值
Maximum =*值
Average = *值

PING
声明:
本文内容由网友自发贡献,版权归原作者所有,本站不承担相应法律责任。如您发现有涉嫌抄袭侵权的内容,请联系admin@php.cn