note 74439 added to function.mysql-connect
| From: | michael at golightly dot com | Date: | Wed, 11 Apr 2007 15:16:38 +0000 |
| Subject: | note 74439 added to function.mysql-connect | ||
| Groups: | php.notes | ||
| Request: | Send a blank email to php-notes+get-125298@lists.php.net to get a copy of this message | ||
Drowning under a sea of connections using mysql_connect (not pconnect) I found that php connections
did NOT go away at the end of a page load. Only by setting the directive mysql.allow_persistent =
Off made the connections go away. So unless I've missed something else or don't
understand the meaning of 'script' the following note on this page is incorrect:
Note: The link to the server will be closed as soon as the execution of the script ends, unless
it's closed earlier by explicitly calling mysql_close().
Using PHP 4.4.4 & MySQL 4.0.26
----
Server IP: 69.147.83.197
Probable Submitter: 69.181.19.55
----
Manual Page -- http://www.php.net/manual/en/function.mysql-connect.php
Edit -- https://master.php.net/note/edit/74439
Del: integrated -- https://master.php.net/note/delete/74439/integrated
Del: useless -- https://master.php.net/note/delete/74439/useless
Del: bad code -- https://master.php.net/note/delete/74439/bad+code
Del: spam -- https://master.php.net/note/delete/74439/spam
Del: non-english -- https://master.php.net/note/delete/74439/non-english
Del: in docs -- https://master.php.net/note/delete/74439/in+docs
Del: other reasons-- https://master.php.net/note/delete/74439
Reject -- https://master.php.net/note/reject/74439
Search -- https://master.php.net/manage/user-notes.php