Home >Backend Development >PHP Tutorial > 怎么得到 PING 反回的的值

怎么得到 PING 反回的的值

WBOY
WBOYOriginal
2016-06-13 12:42:53801browse

如何得到 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
Statement:
The content of this article is voluntarily contributed by netizens, and the copyright belongs to the original author. This site does not assume corresponding legal responsibility. If you find any content suspected of plagiarism or infringement, please contact admin@php.cn