nyrobert / php-ping

PHP native implementation of ICMP ping utility

Geek Repo:Geek Repo

Github PK Tool:Github PK Tool

PHP ping

PHP native implementation of ICMP ping utility. No external applications are called to ping the remote host; everything is implemented using PHP's socket functions.

Requirements

  • PHP
  • root access

Usage

Synopsis

ping [-c count] [-i interval] destination

Options

-c count: Stop after sending count ECHO_REQUEST packets (default is 3).

-i interval: Wait interval seconds between sending each packet (default is 1 second).

Examples

Access to raw sockets on UNIX like systems requires root access.

 sudo php ping.php google.com
 sudo php ping.php -c 10 -i 2 google.com

License

This project is licensed under the terms of the MIT License (MIT).

About

PHP native implementation of ICMP ping utility

License:MIT License


Languages

Language:PHP 100.0%