PHP Classes

Net Ping: Send ping requests sending ICMP packets

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

Author

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
Innovation award
Innovation award
Nominee: 1x

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

The PHP Classes site has supported package installation using the Composer tool since 2013, as you may verify by reading this instructions page.
Install with Composer Install with Composer
 Version Control Unique User Downloads Download Rankings  
 0%
Total:1,314
This week:0
All time:2,937
This week:78Up
User Ratings User Comments (2)
 All time
Utility:92%StarStarStarStarStar
Consistency:89%StarStarStarStarStar
Documentation:-
Examples:92%StarStarStarStarStar
Tests:-
Videos:-
Overall:64%StarStarStarStar
Rank:695
 
freaky awsome!
10 years ago (Mark Cp)
70%StarStarStarStar
Good work! Finally there is a ping class NOT using exec() nor...
14 years ago (Artur Graniszewski)
67%StarStarStarStar