note 10668 added to odbc_pconnect

From: Date: Tue, 16 Jan 2001 14:41:10 +0000
Subject: note 10668 added to odbc_pconnect
Groups: php.notes 
Request: Send a blank email to php-notes+get-9842@lists.php.net to get a copy of this message
Ok, learning time. As I was told by the PHP-DevTeam... Multiple connections are supported, but when you try to connect with exactly the same parameters, an existing connection will be reused, leading to the behaviour you see. You can simply omit the calls to odbc_close() since connections get closed on script termination anyway or better: Consider making your connection id a global variable or pass it to your functions. http://www.php.net/manual/en/function.odbc-pconnect.php

« previous php.notes (#9842) next »