ping:PHP类用于fping命令

时间:2021-04-30 16:36:44
【文件属性】:
文件名称:ping:PHP类用于fping命令
文件大小:3KB
文件格式:ZIP
更新时间:2021-04-30 16:36:44
PHP ping PHP类用于fping命令 要求 要求:fping 对于RedHat / CentOS 6,7 [root@centos ~ ] # yum install epel-release [root@centos ~ ] # yum install fping 使用Composer安装 $ composer require nelisys/ping 用法 示例php文件。 // test-ping.php require 'vendor/autoload.php' ; use Nelisys \ Ping ; $ host = new Ping ( '127.0.0.1' ); var_dump ( $ host -> ping ()); 测试运行php文件。 $ php test-ping.php Array ( [127.0.0.1] = > 0.14 )
【文件预览】:
ping-master
----src()
--------Ping.php(2KB)
----LICENSE(1KB)
----composer.json(362B)
----README.md(552B)

网友评论