PHP Classes

Net Ping: Send ping requests sending ICMP packets

Recommend this page to a friend!
  Info   View files View files (2)   DownloadInstall with Composer Download .zip   Reputation   Support forum (3)   Blog    
Ratings Unique User Downloads Download Rankings
StarStarStarStar 64%Total: 1,313 All time: 2,937 This week: 560Up
Version License PHP version Categories
net-ping 0.01GNU General Publi...3.0Networking


This class can be used to send ping requests sending ICMP packets.

It creates a socket to send packets to a given remote computer from a given local IP address or the default local network interface.

The class sends the ping ICMP packets and retrieves the response time if it arrived before a given timeout value.

Innovation Award
PHP Programming Innovation award nominee
November 2010
Number 3

Prize: One downloadable copy of Komodo IDE
When you need to know if a remote machine is accessible and responding adequately to network accesses, you can use the ICMP protocol to send request to a remote host and see how it responds.

The ping program exists in many Operating Systems and can be used to send ICMP requests to check a remote server. However, in some cases, PHP applications cannot use the ping program due to PHP setup constraints.

This class provides an alternative solution for emulating the ping program by sending ICMP protocol requests using pure PHP code.

Manuel Lemos
Picture of Maxim Ignatenko
Name: Maxim Ignatenko <contact>
Classes: 2 packages by
Country: Russian Federation Russian Federation
Age: 41
All time rank: 162750 in Russian Federation Russian Federation
Week rank: 286 Up17 in Russian Federation Russian Federation Up
Innovation award
Innovation award
Nominee: 1x

  Files folder image Files  
File Role Description
Accessible without login Plain text file index.php Example example
Plain text file netping.php Class class file

 Version Control Unique User Downloads Download Rankings  
This week:0
All time:2,937
This week:560Up
User Ratings User Comments (2)
 All time
freaky awsome!
9 years ago (Mark Cp)
Good work! Finally there is a ping class NOT using exec() nor...
13 years ago (Artur Graniszewski)