note 65827 added to function.mysql-connect

From: Date: Mon, 08 May 2006 16:21:26 +0000
Subject: note 65827 added to function.mysql-connect
Groups: php.notes 
Request: Send a blank email to php-notes+get-110874@lists.php.net to get a copy of this message
PHP (5.1.2) stores connections according to script name and remote host, apparently. If the same script is requested by the same browser in two different tabs (Firefox for this test) and requests a non-persistent connection using the same user and password, the connection will be shared. Ran into this while testing a script for concurrent usage using "LOCK TABLES" queries... and found that one tab's script was blocking until the other finished. No blocking occurred when different machines loaded the same script at the same time. Very interesting. ---- Server IP: 66.163.161.117 Probable Submitter: 68.45.128.221 ---- X-Spam-Status: No, hits=3.1 required=5.0 tests=DATE_MISSING,FROM_NO_LOWER autolearn=no version=2.64 ---- Manual Page -- http://www.php.net/manual/en/function.mysql-connect.php Edit -- http://master.php.net/note/edit/65827 Del: integrated -- http://master.php.net/note/delete/65827/integrated Del: useless -- http://master.php.net/note/delete/65827/useless Del: bad code -- http://master.php.net/note/delete/65827/bad+code Del: spam -- http://master.php.net/note/delete/65827/spam Del: non-english -- http://master.php.net/note/delete/65827/non-english Del: in docs -- http://master.php.net/note/delete/65827/in+docs Del: other reasons-- http://master.php.net/note/delete/65827 Reject -- http://master.php.net/note/reject/65827 Search -- http://master.php.net/manage/user-notes.php

« previous php.notes (#110874) next »