RE: [PHP] script to check if server is up

2003-02-18 Thread Luke Woollard
was running on our old server.. It always seemed to crash at awkard times... Luke Woollard -Original Message- From: Petre Agenbag [mailto:[EMAIL PROTECTED]] Sent: Wednesday, 19 February 2003 12:17 AM To: Subject: [PHP] script to check if server is up Hi I have two servers on two

Re: [PHP] script to check if server is up

2003-02-18 Thread Jason Sheets
Hi Pete, You could use PHP's command line execution programs to execute the ping command, then either check the output or check the return status of ping, if you do this make sure you pass ping some parameters that will limit the timeout and retries otherwise your PHP script may hang waiting for

[PHP] script to check if server is up

2003-02-18 Thread Petre Agenbag
Hi I have two servers on two different networks. I would like to implement some sort of a watchdog application between the two to inform me should either of the machines go down or has a connection problem. I was thinking along the line of using a PHP script running from cron on an hourly basis to