bauhsoj
06-26-2005, 06:12 PM
I am running a PHP script on my local server that contacts a live remote server to do uploads and downloads. However, I need to prevent the script from even trying to download or upload to the remote server if there is no internet connection. Due to a faulty LinkSys router, and me lacking the money to replace it, I have to deal with a periodic loss of internet connection when it gets clogged with too many packets or overheats.
Currently I am using a system ping to Google through PHP to detect if there is an active connection. I am wondering, however, if there is a better way to do this.
This PHP script mainly runs on Windows XP for the moment.
Currently I am using a system ping to Google through PHP to detect if there is an active connection. I am wondering, however, if there is a better way to do this.
This PHP script mainly runs on Windows XP for the moment.