Categories

PHP – Check Service Status

Got multiple servers? Want to know they are still up by looking at once place? Want to give your users an easy to see status page?

A quick way to test if a server or service is up is to try connecting to it, if you can connect, you can assume that the server is still online. While this method isn’t perfect it works most of the time.