Re: [PHP3] persistent conection
| From: | (Richard Lynch) | Date: | Wed, 07 Jun 2000 07:47:03 +0000 |
| Subject: | Re: [PHP3] persistent conection | ||
| References: | 1 | Groups: | php.general |
| Request: | Send a blank email to php-general+get-1175@lists.php.net to get a copy of this message | ||
In article <Pine.LNX.4.10.10006011820280.32333-100000@math.unl.edu.ar>,
martin@math.unl.edu.ar ("Martin A. Marques") wrote:
> I have a dought. When I open a connection (or persistence connection)
> and I go through other pages, how do I get a persistent connection? I
> mean, is it posible to get connections that are already open or do I
> have to open a new connection to the database for each php script?
The persistency is from the viewpoint of the database server, not PHP.
To PHP, they're really "re-usable" connections.
The database keeps the connection around, and if the same user/password
ask for it again, you get that existing one.
You get one just by using xxx_pconnect.
--
Richard Lynch | If this was worth $$$ to you, buy a CD
US Customer Support Director | from one of the artists listed here:
Zend Technologies USA | http://www.L-I-E.com/artists.htm
http://www.zend.com | (this has nothing to do with Zend,
duh!)