Search
 
SCRIPT & CODE EXAMPLE
 
CODE EXAMPLE FOR PHP

php ping

exec("ping ".$ip, $output, $status);
// $ip: desired ip address
// $output: result messages from the ping
// $status: result status code from the ping
//		0: success
//		1: no response
//		2: other errors
Source by www.jeffgeerling.com #
 
PREVIOUS NEXT
Tagged: #php #ping
ADD COMMENT
Topic
Name
3+3 =