首頁 >後端開發 >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