i'm trying to figure out how to have an email sent to me when my server goes down.
i'm using this, which tests whether it is up or down when you load the page:
<?
$sk = fsockopen("domain.com", 80);
if ($sk) {
print "good news - web is running";
fclose($sk);
} else {
print "web is down";
}
?>
any ideas how i can have it send me a message or page me if it goes offline?
thanks.
g.