[Date Prev][Date Next][Thread Prev][Thread Next][Date Index][Thread Index]

Re: how to use Apache::DBI


On 7/30/07, Ken Perl <suppressed> wrote:
> I didn't run it under ModPerl::Registry

Did you run it under some other mod_perl module, like
ModPerl::PerlRun?  If it's a CGI script, and you aren't running it
through something like this, then you aren't running it through
mod_perl and you won't be able to use persistent connections.

> Could I just run use the previous connections via DBI->connect_cache
> instead of the Apache::DBI in one single cgi script

Not if you aren't running it through mod_perl.  CGI scripts exit after
each request, so they can't do persistent connections.

- Perrin


Mail converted by mhonarc 2.6.15
This archive provided courtesy of JSW4.NET, Internet Hosting Services for Small Business.