Read

http://www.cpan.org/modules/by-category/15_World_Wide_Web_HTML_HTTP_CGI/Apache/Apache-DBI-0.91.readme


Where it says:
==========================================================
  PerlModule Apache::DBI    # this comes first !!
  ....                      # other modules using DBI

 Apache::DBI->connect_on_init($data_source, $username, $auth, \%attr)

This method is supposed to be called in a startup file, in which also all 
needed modules can be loaded. As an example the file startup.pl is provided. 
Add all other modules you need to this file and just add one line to your 
httpd.conf:

  PerlRequire /usr/local/apache/perl/startup.pl

==========================================================

You know that after you install DBI then you have to install the DBD for the database 
you are using.
Then you write Perl to the DBI and it talks to your DB through the DBD

Script.pl -> DBI -> DBD -> your database


HTH,

Greg


Gregory L. Hering
4807 Bradford Drive
Huntsville, AL 35805
(256) 722-6420


> -----Original Message-----
> From: Donglu Xie [mailto:[EMAIL PROTECTED] 
> Sent: Tuesday, July 22, 2003 3:28 PM
> To: [EMAIL PROTECTED]
> Subject: Startup.pl
> 
> 
> 
> I just installed Apache::DBI module. Is it true that once 
> this module installed, there is a startup.pl script in 
> somewhere? But, I couldn't find out. 
> 
> Any help is appreciated.
> 
> Donglu
> 
> 
> 

Reply via email to