PHP Classes

File: watch.php

Recommend this page to a friend!
  Classes of Dawood Ikhlaq   PHP Down Watch   watch.php   Download  
File: watch.php
Role: Example script
Content type: text/plain
Description: Example script
Class: PHP Down Watch
Notify when a site is down and stopped responding
Author: By
Last change:
Date: 3 years ago
Size: 371 bytes
 

Contents

Class file image Download
<?php
/**
 * Created by PhpStorm.
 * User: dawood.ikhlaq
 * Date: 02/04/2019
 * Time: 15:29
 */



include 'vendor/autoload.php';
$dotenv = Dotenv\Dotenv::create(__DIR__);
$dotenv->load();



$watch = new \DownWatch\Watch();
try{
   
$watch->work();
}catch (
Exception $exception)
{
    echo
'Following error occured'.PHP_EOL;
    echo
$exception->getMessage().PHP_EOL;
}