mercredi 20 juin 2018

How to Check Status of more than one url in Laravel

Hello team I have function that check url is down or UP

 public function checkSystem()
{
    $content = file_get_contents("http://policy.fetty.go.com/user/login");
    if (strpos($content, 'Fatal error') !== false)
    {
        echo("<span class='offline'>Down</span>");
    }
    else
    {
        echo("<span class='Up'>Up</span>");
    }
}

I want to be able to check more than one url please assist



from Newest questions tagged laravel-5 - Stack Overflow https://ift.tt/2K6yjEM
via IFTTT

Aucun commentaire:

Enregistrer un commentaire