zero-perfoliate
zero-perfoliate

Author Topic: setting a timeout on db connection  (Read 220 times)

Offline thom2002

  • New PHP Members
  • Posts: 1
  • Karma: +0/-0
setting a timeout on db connection
« on: April 24, 2010, 02:52:16 AM »


Hi All,


First posting here and I come with a question :)


I have a script with database (script A) running on one server (Server A).

I have a plugin script (script B) installed into script A.

Script B connects to a database on another server (server B)


Everything works perfectly - except...

If server B goes down then script B times out and stops execution of script A.

What I need to happen is...

IF server B is unavailable, then script A ignores script B and continues execution.

And it needs to happen within 2 seconds.


I am open to suggestions :)


best wishes

Thom