You have to put Apache::DBI before any of the DBI's
you are using in httpd.conf file.
In your cgi programs use only "DBI" not "Apache::DBI"
module.
a simple program would be.
#! /usr/bin/perl
print "Content-type:text/html\n\n";
$dbh=DBI->connect("DBI::Pg::dbname=emp","user","passwod");
print "<body> connected successfully </body>";
$dbh->disconnect;
if Apache::DBI was loaded before DBI, some of the
fuctions would be overridden.
Even if you give $dbh->disconnect,Apache::DBI will
override funtion to nothing.
-Arun
--- Geoffrey Young <[EMAIL PROTECTED]> wrote:
>
>
> > -----Original Message-----
> > From: Brad Howerter [mailto:[EMAIL PROTECTED]]
> > Sent: Tuesday, February 20, 2001 12:57 PM
> > To: '[EMAIL PROTECTED]'
> > Subject: RE: Apache::DBI::connect problem, please
> help
> >
> [snip]
> > So Apache/DBI.pm must be installed incorrectly on
> my system.
> > It's supposed to be different from the DBI.pm?
>
> yup, you need both. DBI is, well, DBI. Apache::DBI
> is a persistent
> framework under mod_perl that uses DBI.
>
> HTH
>
> --Geoff
k
__________________________________________________
Do You Yahoo!?
Yahoo! Auctions - Buy the things you want at great prices! http://auctions.yahoo.com/