Skip to content

nyrobert/php-ping

Folders and files

NameName
Last commit message
Last commit date

Latest commit

 

History

13 Commits
 
 
 
 
 
 
 
 
 
 
 
 
 
 

Repository files navigation

PHP ping

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.

Requirements

  • PHP
  • root access

Usage

Synopsis

ping [-c count] [-i interval] destination

Options

-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).

Examples

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

License

This project is licensed under the terms of the MIT License (MIT).

About

PHP native implementation of ICMP ping utility

Topics

Resources

License

Stars

Watchers

Forks

Releases

No releases published

Packages

No packages published

Languages