On 2004-10-18 19:57:07 -0400, Paul Appleby wrote: > My CGI application will be called by different visitors to the web > site at different times, but they all connect to the same database > using the same connection variables, i.e. the same user/password. > Are you saying the first visitor to the web site's connection can be > left open for all the other visitors? How?
Not for CGI, since CGI per definition invokes a new process for every
request.
It does work with Apache's mod_perl (as others have already noted) and
fastcgi, and should also work with PPerl, SpeedyCGI, etc. These keep
your process running for several requests (typically for a maximum
number of requests or until a timeout), so you only have to open a new
connection every once in a while. Which one is appropriate for your
application depends on your application and your environment (If you
aren't using Apache, you can't use mod_perl, for example).
hp
--
_ | Peter J. Holzer | Shooting the users in the foot is bad.
|_|_) | Sysadmin WSR / LUGA | Giving them a gun isn't.
| | | [EMAIL PROTECTED] | -- Gordon Schumacher,
__/ | http://www.hjp.at/ | mozilla bug #84128
pgpKJOnAAORcV.pgp
Description: PGP signature
