php ping machine hostname

PHOTO EMBED

Sat Aug 08 2020 16:25:58 GMT+0000 (UTC)

Saved by @peota #php

$ip =   "127.0.0.1";
exec("ping -n 3 $ip", $output, $status);
print_r($output);
content_copyCOPY

https://stackoverflow.com/questions/13283674/how-to-ping-ip-addresses-in-php-and-give-results