PHP Project (Simple) – Simple Network Up/Down Monitor

This is a simple Up/Down network monitor to show what your server is able to see on the network and internet.



        <meta http-equiv="refresh" content="5">


$websites = array("","","","");

echo "<h1>Site Status  ".date("h:i:s")."</h1>";

foreach ($websites as $url){
    $command = "ping -c 1 ".$url;
    echo "<strong>Address: ".$url."</strong>";
    echo "<pre>";
    echo shell_exec($command);
    echo "</pre>";



Be the first to comment

Leave a Reply