RE: [PEAR] Auth class
| From: | Matt Friedman | Date: | Fri, 23 Nov 2001 15:12:46 +0000 |
| Subject: | RE: [PEAR] Auth class | ||
| References: | 1 | Groups: | php.pear.general |
| Request: | Send a blank email to pear-general+get-539@lists.php.net to get a copy of this message | ||
> When a connection already exists, and another one is
> requested php will
> pick up the already existing connection, and not actually create a new
> one. That's the story I've been told anyway. One of the developers can
> probably confirm this.
> Is it so intelligent ? ;))
Yes, it is. One connection is created, not two. See below.
File: dbconntest.php
<?
$conn1 = pg_Connect(PGSQL_CONN_STR);
$conn2 = pg_Connect(PGSQL_CONN_STR);
print "<P>Connection 1: " . $conn1;
print "<P>Connection 2: " . $conn2;
?>
Outputs:
Connection 1: Resource id #1
Connection 2: Resource id #1
Matt Friedman
Web Applications Developer
www.SpryNewMedia.com
Email: matt@SpryNewMedia.com
-----Original Message-----
From: LIMBOURG Arnaud [mailto:arnaud.limbourg@cegetel.fr]
Sent: Friday November 23, 2001 4:51 AM
To: pear-general@lists.php.net
Subject: RE: [PEAR] Auth class
> When a connection already exists, and another one is
> requested php will
> pick up the already existing connection, and not actually create a new
> one. That's the story I've been told anyway. One of the developers can
> probably confirm this.
Is it so intelligent ? ;))
--
PEAR General Mailing List (http://pear.php.net/)
To unsubscribe, e-mail: pear-general-unsubscribe@lists.php.net
For additional commands, e-mail: pear-general-help@lists.php.net To
contact the list administrators, e-mail: php-list-admin@lists.php.net