Thomas Hilbig <[EMAIL PROTECTED]> wrote:
> I was getting the error even from running perl
> interactively
> linux>perl
> use CGI ;
> Can't locate Apache.pm in @INC
>
> I think the problem may be that I am simply missing
> the MOD_PERL_API_VERSION environment variable in my
> shell environment. I
On Mon, 2006-05-08 at 17:23 +0200, Lionel MARTIN wrote:
> I'm not sure this is right. Acording to what I read, and to my test, the
> PerlInitHandler phase happens for every request, and not just when threads
> are created.
I called it PerlInitHandle, but it's actually called
PerlChildInitHandler
You're saying:
*
The connect_on_init() method doesn't connect until the PerlInitHandler
phase, which is when a new child starts up.
*
I'm not sure this is right. Acording to what I read, and to my test, the
PerlInitHandler phase happens for every request, and not just when threads
ar
On Mon, 2006-05-08 at 16:56 +0200, Lionel MARTIN wrote:
> And what about the best usage when using threaded MPMs, like Win32 MPMs,
> concerning connections?
It's no different. The threads are created after startup, and the init
phase happens in each thread.
- Perrin
And what about the best usage when using threaded MPMs, like Win32 MPMs,
concerning connections?
- Original Message -
From: "Perrin Harkins" <[EMAIL PROTECTED]>
To: "Octavian Rasnita" <[EMAIL PROTECTED]>
Cc:
Sent: Monday, May 08, 2006 3:26 PM
Subject: Re: Using Apache::DBI
Octavian
Octavian Rasnita wrote:
I thought the best way of using Apache::DBI is to put the following code in
the startup.pl script:
use Apache::DBI ();
Apache::DBI->connect_on_init('DBI:mysql:database=database_name;host=10.50.28
.37', 'user', undef, {PrintError => 1, RaiseError => 0, AutoCommit => 1});
u
Hi,
I thought the best way of using Apache::DBI is to put the following code in
the startup.pl script:
use Apache::DBI ();
Apache::DBI->connect_on_init('DBI:mysql:database=database_name;host=10.50.28
.37', 'user', undef, {PrintError => 1, RaiseError => 0, AutoCommit => 1});
use DBI ();
But I und