note 15619 added to function.mysql-pconnect

From: Date: Sun, 23 Sep 2001 21:21:20 +0000
Subject: note 15619 added to function.mysql-pconnect
Groups: php.notes 
Request: Send a blank email to php-notes+get-18220@lists.php.net to get a copy of this message
Just a little warning: If you have a class which uses mysql_pconnect and are creating multiple instances of it, you may get mysql errors concerning the number of mysql links you have open. eg. I had a script that used a database interface class - this class used mysql_pconnect. However, the class appeared to be creating a new link each time it was instantiated, so when I was calling the script multiple times within another script (I was generating image headers and including images from a database), then I occasionally received an error about the number of links mysql had open :( (correct me if I am wrong about this - the link error disappeared when I changed pconnect to connect). -- http://www.php.net/manual/en/function.mysql-pconnect.php http://master.php.net/manage/user-notes.php?action=edit+15619 http://master.php.net/manage/user-notes.php?action=delete+15619 http://master.php.net/manage/user-notes.php?action=reject+15619

« previous php.notes (#18220) next »