If by "fails to connect when using CGI.pm" you mean that the CGI.pm
version of the application fails when run from the web server, then
I'd look at the configuration of the user account that the web server
launches CGI programs as.  It is likely that account is not configured
to access the database.  In other words, its not the program but the
run time environment that is the problem.

Stph

> -----Original Message-----
> From: Jonathan Gines [mailto:[EMAIL PROTECTED]]
> Sent: Thursday, May 16, 2002 1:59 PM
> To: [EMAIL PROTECTED]
> Cc: Jonathan Gines
> Subject: DBI works, but CGI + DBI bombs?
> 
> 
> Hello,
> 
> I have 2 scripts below, where DBI is used in the former and 
> DBI and CGI is 
> used in the latter.  The first script connects fine via 
> command line, and 
> the latter fails to connect, but using the same DBI code from the 
> former.  I'm puzzled and RTFM before deciding to send this 
> email.  Can 
> anyone shed any light on why my script fails to connect when 
> using CGI.pm?

Reply via email to