Subject Re: [firebird-php] Win2003 Vs Win2k performance??
Author Milan Babuskov
Alan McDonald wrote:
> Milan - when you use pconnect, what does pconnect do when you call it again
> on subsequent pages in the website?

Nothing. It "reuses" the previous connection.

> [Alan McDonald] Also I imagine that pconnect is useless in the CGI
> environment???

Yes. In CGI env. it works the same as connect()

> Does pconnect maintain a connection until you "Unload" the
> module in isapi mode?

I never tried to "Unload" module. I always put it in php.ini file so it
is loaded when Apache starts. It does keep connection open all the time.


My experience is that is works exactly as explained in PHP manual:

ibase_pconnect() acts very much like ibase_connect() with two major
differences. First, when connecting, the function will first try to find
a (persistent) link that's already opened with the same parameters. If
one is found, an identifier for it will be returned instead of opening a
new connection. Second, the connection to the InterBase server will not
be closed when the execution of the script ends. Instead, the link will
remain open for future use (ibase_close() will not close links
established by ibase_pconnect()). This type of link is therefore called
'persistent'.


--
Milan Babuskov
http://fbexport.sourceforge.net