Persistent database connections perl DBI

Albert Leidinger <albert.leidinger-kt1KeoM4Q/BvMmomy+XrYrNldLUNz+W/@public.gmane.org>
Newsgroups gmane.comp.web.fastcgi.devel
Organization die graphikschmiede
Message-ID <[email protected]>
Hi!

I´m using DBI (not Apache::DBI) and it works fine with fastCGI.

my $dbh = DBI->connect($data_source, $username, $password) or die 
$DBI::errstr;

Just open the connection like above before the fastcgi request loop in 
your perl-script.
The database handle in $dbh is kept in memory and ready for your action 
within the loop!

Just have a look at the docs for initializing things and the request loop.

bye
Albert
___________________________________
fastcgi-developers mailing list
http://fastcgi.com/fastcgi-developers/
lmpx.com only provides a reader for public news (NNTP) servers. It is not affiliated with the servers or forums shown here and is not responsible for the content of articles, which is written by their respective authors.