Since my server/host does not allow the use of ping, how can I call a php scipt from another server, have it execute and then read back it's output ?
It would go something like this:
run from cron: home/test.php
calls/executes http://domain.com/tested.php
tested.php: upon execution would query it's datbase & get $result.
$name=test;
$result = mysql_query("select Name from Names where Name='$name'");
Then I want test.php to read $result, if no result send email to me.
if (empty($result) or $result == 0) {
mail("to myself","DB error", "result: $result", "FROM: me$netzero.net");
} else {
success=do nothing;
}
What do you think ?
Thanks,
Peter