I need a very simple PHP script written that will run on server A and will check the status of server B/C/D to see if the web server is up and send an email if the server goes down, and when it comes up again.
Please see the attached [url removed, login to view] and CONFIG.TXT. You need to write a script that matches these, or if you want to modify then discuss with me your modifications to get approval FIRST then update the sample [url removed, login to view] and [url removed, login to view] to match your code.
This will be used on many differently configured servers (all low cost shared hosting web servers) so it must run on any PHP4 or PHP5 installation, e.g. must not be fussy about specific configuration. It will be tested against php [url removed, login to view] and apache 1.3.33.
Code must be clearly written with proper formatting, descriptive variable names and basic comments.
Copyright of script will be assigned to me on completion of project/payment.