On Thu, 2002-05-16 at 13:59, Jonathan Gines wrote: > 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?
In general the problem is with environment variables, in particular $ENV{SYBASE}. If you are running Apache I suggest placing something like SetEnv SYBASE /opt/sybase in the httpd.conf file. Also - you don't mention what sort of error you get. The actual error message would help in pinpointing what is wrong. Michael -- Michael Peppler Data Migrations, Inc. [EMAIL PROTECTED] *or* [EMAIL PROTECTED] http://www.mbay.net/~mpeppler International Sybase User Group: http://www.isug.com
signature.asc
Description: This is a digitally signed message part