RE: [PHP-DB] connection to database

From: Date: Thu, 12 Apr 2001 07:54:23 +0000
Subject: RE: [PHP-DB] connection to database
Groups: php.db 
Request: Send a blank email to php-db+get-8515@lists.php.net to get a copy of this message
wow. another postgresql user ! i use pg_connect to connect as well, including the connect script as an 'if not connected then connect' type of thing. the connection is killed and memory from queries freed up when the script finnishes. incidently, i used pconnect for a while but found that connections were staying open when users had left. postgresql just kept spawning backends ... using non-persistent connections eeemded a better deal ... Steve > -----Original Message----- > From: Sharmad Naik [mailto:sharmad@goatelecom.com] > Sent: 11 April 2001 19:59 > To: php-db@lists.php.net > Subject: [PHP-DB] connection to database > > > Hi, > While writing dynamic pages I use pg_connect to connect > to the database. > I wanted to know whether i alway need to close database > connection or while > closing the FORM or going to another page does the connect > close automatically. > Is pg_close necessary to be given ? > > -- > The secret of the universe is @*&!'^#+ NO CARRIER > __ _ _ _ _ > |_|_||_||_||\/||_|| \ > _|| || || \| || ||_/ > > -- > PHP Database Mailing List (http://www.php.net/) > To unsubscribe, e-mail: php-db-unsubscribe@lists.php.net > For additional commands, e-mail: php-db-help@lists.php.net > To contact the list administrators, e-mail: > php-list-admin@lists.php.net >

« previous php.db (#8515) next »