fork download
  1. <?php
  2.  
  3. set_exception_handler( function (Exception $exception) {
  4. file_put_contents(__DIR__ . "/../logs/error.log",
  5. date("H:i:s F j, Y", $_SERVER['REQUEST_TIME']) .
  6. "\n{$exception->getMessage()}\n" .
  7. "{$exception->getFile()} \t Line: {$exception->getLine()}\n\n",
  8. FILE_APPEND);
  9. $timeout = 600;
  10. //Sending 503 header and loading error page template
  11. header("HTTP/1.1 503 Service Unavailable", true, $timeout);
  12. header("Retry-After: $timeout");
  13. require_once "../src/View/503.html";
  14. });
  15.  
Success #stdin #stdout 0s 82880KB
stdin
Standard input is empty
stdout

Standard output is empty