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.
If you bid please can you indicate if you are willing to do it *EXACTLY* as specified -- no alterations. e.g. no mysql, no doing include config.php instead of using a text file as specified, no using cron instead of the empty image as specified, etc.
The design may seem strange and I know it will run slow compared to some other designs, but the design is quite deliberate -- I am an experienced programmer and I am not making this inefficient design because I lack knowledge. I'm doing it because I need the script to integrate with a particular environment and be used by particular people who will need it like this and that is more important than speed.
I am not looking for someone to do a good design for me -- I just want someone to code exactly the design I have given. I won't complain about it being slow!