Blah I need help. 🙁
Anywho I made this script that simply checked to see if a server was up or not by pinging it using the built in command for php. it works if the server reboots, but when it goes completely offline the script hoses the system
I tried giving it a timeout value but it just hangs the site trying to ping the server. any help? just need a simple ping script that pings the server and returns up or down. if down and offline how to kill the script and just display down