PHP ICMP PingNative-PHP ICMP ping implementation
This class is a native-PHP implementation of an ICMP ping utility. No external applications are called to ping the remote host; everything is implemented using PHP's socket functions.
Note that access to raw sockets requires root access, so this script also requires root access - rendering it more or less useles for web applications. A demo CLI script is included.
This code was originally written by Javier Szyszlican for JFFNMS, but the copy here on BlitzAffe Code is a modified version that I (Steve Blinch) have cleaned up to fix a number of serious bugs and errors.