Received: from home.c0de.net (209.dsl6660135.nokia.surewest.net [66.60.135.209]) by postgresql.org (8.11.3/8.11.4) with ESMTP id g16LGdE64264 for ; Wed, 6 Feb 2002 16:16:39 -0500 (EST) (envelope-from phill@home.c0de.net) Received: from phill by home.c0de.net with local (Exim 3.34 #1 (Debian)) id 16YZQp-0008SW-00; Wed, 06 Feb 2002 13:16:43 -0800 Date: Wed, 6 Feb 2002 13:16:43 -0800 From: Phill Kenoyer To: Felipe Nascimento Cc: "'pgsql-admin@postgresql.org'" Subject: Re: Persistent Connections with PHP and PostgreSQL Message-ID: <20020206211643.GY27030@home.c0de.net> References: Mime-Version: 1.0 Content-Type: text/plain; charset=us-ascii Content-Disposition: inline In-Reply-To: User-Agent: Mutt/1.3.27i X-Archive-Number: 200202/50 X-Sequence-Number: 3211 PHP will close the connection at the end of the script. I always call pg_close() when I'm done accessing the db. If your script is short and quick, then it should not be a problem. If it does some more processing on the data after you finished with the connection, why keep it open? |On 020206 13:11 |Felipe Nascimento (Felipe.Nascimento@multivalor.com.br) wrote the following... | |Do I have to call pg_close() every time at the end of the script?? | |Tks |Felipe | -- BOFH Reason of the day: backup tape overwritten with copy of system manager's favourite CD _ | _ (_()(|('.|)('||.|()|`|(