Okay, I'm setting a MySQL server on another box. The web server needs to connect to the remote server for data exchange. Easy.

BUT - what if I want the web server to check for a good connection first, and if it can't connect in, say 15 seconds, give up and display something else?

  1. Check if URL😛ORT is alive
  2. If not, wait for 15 seconds to be sure it's not simply an internet delay
  3. If alive, go ahead with custom message 1.
  4. If not alive, display custom message 2.

I'm an "intermediate" PHP programmer, and I can implement anything on PHP 4.

Ideas?

    Write a Reply...