note 30244 added to function.mysql-pconnect

From: Date: Wed, 12 Mar 2003 04:45:01 +0000
Subject: note 30244 added to function.mysql-pconnect
Groups: php.notes 
Request: Send a blank email to php-notes+get-45129@lists.php.net to get a copy of this message
Be careful using mysql_pconnect. If you are hosting on an ISP, they may frown upon you using multiple persistant mysql connections as this consumes resources for a longer period of time. If your script crashes, your connection can stay open for long periods of time. If there is a loop involved, you could accidently eat up all the available connections. That might be considered abuse by an ISP and you could get in trouble. Try using mysql_connect first instead. 90% of the time, a non-persistant mysql_connect call will do the trick just fine. -- http://www.php.net/manual/en/function.mysql-pconnect.php http://master.php.net/manage/user-notes.php?action=edit+30244 http://master.php.net/manage/user-notes.php?action=delete+30244 http://master.php.net/manage/user-notes.php?action=reject+30244

« previous php.notes (#45129) next »