From 87cbafce2d6803af78714baf8bba64309c01fc33 Mon Sep 17 00:00:00 2001 From: Derek Jones Date: Fri, 27 Feb 2009 16:29:59 +0000 Subject: added reconnect() method to db drivers --- user_guide/database/connecting.html | 5 +++++ 1 file changed, 5 insertions(+) (limited to 'user_guide/database') diff --git a/user_guide/database/connecting.html b/user_guide/database/connecting.html index 3579e1af6..b4d517941 100644 --- a/user_guide/database/connecting.html +++ b/user_guide/database/connecting.html @@ -158,6 +158,11 @@ you can pass the connection values as indicated above).

+

Reconnecting / Keeping the Connection Alive

+ +

If the database server's idle timeout is exceeded while you're doing some heavy PHP lifting (processing an image, for instance), you should consider pinging the server by using the reconnect() method before sending further queries, which can gracefully keep the connection alive or re-establish it.

+ +$this->db->reconnect(); -- cgit v1.2.3-24-g4f1b