PHP Check if system is online

From: Drew (X3N0PH0N)16 Nov 2011 03:36
To: ANT_THOMAS 8 of 9
If it's a web server you want to check then why not just use file() or file_get_contents() to try to retrieve something you know to be there?

(This may be bad practise, I dunno)
From: ANT_THOMAS16 Nov 2011 15:04
To: Drew (X3N0PH0N) 9 of 9
If I can't get a ping solution working I might have to install some webserver on the two systems in question and use the method you suggest. They're both running ubuntu and one is a VM, so to be honest that one probably doesn't really need to be checked.