Ping
Ping copied to clipboard
A PHP class to ping hosts.
Problem: the 'fsockopen' method opens a socket connection, but never closes it. When pinging multiple host multiple times, this leaves the host with many zombie TIME_WAIT connections. This PR adds...
Loosen the regex to search for a time value, to support non-english output of the ping command. Since the output is generic in all languages we dont need to look...
Right now the class uses the hardcoded string 'time=' to find the latency from the exec output, but when the ping program is localized the class incorrectly assumes the host...