freetds AT lists.ibiblio.org
Subject: FreeTDS Development Group
List archive
- From: Darryl Friesen <Darryl.Friesen AT usask.ca>
- To: TDS Development Group <freetds AT franklin.oit.unc.edu>
- Subject: Re: php pconnect
- Date: Wed, 16 Jan 2002 08:21:59 -0600
> Brian,
> what does then www.php.net mean with its documentation of
> the "sybase_pconnect()" function:
> -->
> First, when connecting, the function would first try to find a
> (persistent) link that's already open with the same host, username
> and password. If one is found, an identifier for it will be returned
> instead of opening a new connection.
>
> Second, the connection to the SQL server will not be closed when the
> execution of the script ends. Instead, the link will remain open for
> future use (sybase_close() will not close links established by
> sybase_pconnect()()).
> <--
> Thus, if there's NO (persistant)connection ONE will be established.
> If there's ONE, no additional will be opened.
> So how would you establish more than ONE connection, only using
> sybase_pconnect()??
As someone mentioned already, I think this is per Apache process. If I do
"ps -ef | grep httpd" I see (right now) 14 Apache processes running. Each
can have one connection per host/user/password.
- Darryl
----------------------------------------------------------------------
Darryl Friesen, B.Sc., Programmer/Analyst Darryl.Friesen AT usask.ca
Education & Research Technology Services, http://gollum.usask.ca/
Department of Computing Services,
University of Saskatchewan
----------------------------------------------------------------------
"Go not to the Elves for counsel, for they will say both no and yes"
-
php pconnect,
Kaeptn Weltall, 01/16/2002
- <Possible follow-up(s)>
- Re: php pconnect, Brian Bruns, 01/16/2002
- Re: php pconnect, Kaeptn Weltall, 01/16/2002
- Re: php pconnect, Darryl Friesen, 01/16/2002
- Re: php pconnect, Brian Bruns, 01/16/2002
- Re: php pconnect, Michael Peppler, 01/16/2002
Archive powered by MHonArc 2.6.24.