Re: how to use Apache::DBI
by Clinton Gormley other posts by this author
Jul 30 2007 3:49AM messages near this date
Re: how to use Apache::DBI
|
Re: how to use Apache::DBI
On Mon, 2007-07-30 at 18:21 +0800, Ken Perl wrote:
> I've configured the Apache::DBI in httpd.conf like this,
>
> PerlModule Apache::DBI
>
> I didn't have Apache::DBI->connect_on_init($data_source, $username,
> $auth, \%attr) in startup.pl since we don't use startup.pl. and the
> doc says to config it in httpd.conf is OK.
>
> my question is I can not find any persistent connections for my CGI
> script. any usage error here?
Persistent connections will not work for straight CGI scripts, because
CGI is not persistent.
For each CGI request, a new perl interpreter is loaded, your script is
compiled, run, and the Perl process exits.
mod_perl IS persistent, as are your CGI scripts run via
ModPerl::Registry etc.
You don't need connect_on_init to work, but you do need mod_perl
Clint
>
Thread:
Ken Perl
Perrin Harkins
Clinton Gormley
Dodger
Perrin Harkins
Ken Perl
Clinton Gormley
Ken Perl
Perrin Harkins
Ken Perl
Clinton Gormley
Perrin Harkins
Ken Perl
Arshavir Grigorian
|