Skip to Content.
Sympa Menu

freetds - Re: php pconnect

freetds AT lists.ibiblio.org

Subject: FreeTDS Development Group

List archive

Chronological Thread  
  • 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"






Archive powered by MHonArc 2.6.24.

Top of Page