(doesNo, it doesn't. It uses Apache and DBI. Did you install the package via the "Makefile.PL" stanza? Maybe you should just install it another time. On the other hand, Apache::DBI doesn't export anything. Try calling it with the package name explicitly.
Apache::DBI overload the DBI methods?)
kind regards
Martin
Marty J. Rogers wrote:
[EMAIL PROTECTED]">I had tried that, with the same result. (does
Apache::DBI overload the DBI methods?) Full
error is as follows. Again, any help is _highly_
appreciated.
Marty
[error] Can't locate object method "connect_on_init" via package "Apache::DBI" at /etc/httpd/conf/startup.pl line 28.
Compilation failed in require at (eval 14) line 1.
Syntax error on line 1276 of /usr/local/apache/conf/httpd.conf:
Can't locate object method "connect_on_init" via package "Apache::DBI" at /etc/httpd/conf/startup.pl line 28.
Compilation failed in require at (eval 14) line 1.
--
On Tue, 12 Feb 2002 08:44:12 Martin Haase-Thomas wrote:
Marty J. Rogers wrote:[snip]
>From httpd.conf:
PerlModule Apache::DBI CGI DBD::mysql \
Apache::AuthenDBI
PerlRequire /path/to/startup.pl
Alias /perl/ /path/to/perl
PerlModule Apache::Registry
<Location /perl>
SetHandler perl-script
PerlHandler Apache::Registry
Options ExecCGI
allow from all
PerlSendHeader On
</Location
and from startup.pl:
use DBI();use Apache::DBI(); # !! :)use DBD::mysql();
.
.
.
DBI->connect_on_init("DBI:mysql:dbname",
"user","pass",
{Options here}
Join 18 million Eudora users by signing up for a free Eudora Web-Mail account at http://www.eudoramail.com
Join 18 million Eudora users by signing up for a free Eudora Web-Mail account at http://www.eudoramail.com