status.php 143 Bytes
Newer Older
dmorley's avatar
dmorley committed
1 2 3 4 5 6 7 8 9 10
<?php
$dur = (time() - filemtime("last.data"));
echo $dur;
if ($dur > 4000) {
http_response_code(500);
}
else {
http_response_code(200);
} 
?>