Hot answers tagged

1

The probe just checks the header returned. Thus you can have ohne script /probe.php which first sends a request to /healthcheck.php and afterwards another one to index.php. Inside /probe.php you can use $headers = get_headers($url,1); and analyze for a 40X or 50X return code on each of the urls. At the end: if($atleastOneOfTheUrlsReturnedSomeThingBad){ ...



Only top voted, non community-wiki answers of a minimum length are eligible