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.
- PHP
- root access
ping [-c count] [-i interval] destination
-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).
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
This project is licensed under the terms of the MIT License (MIT).