Hi there,
I am using Perl 5.8 with Apache 2.2 on Win XP SP2, all configured and working fine. I am able to run perl programs from command prompt. I am also able to call CGI scripts from HTML pages using Apache and it works fine.
The problem is with the database connectivity using WIN32::ODBC. Look at the following code:
my $DSN = "ABC";
my $connection = new Win32::ODBC($DS N) or die "Could not open connection to DSN because of [$!]";
It works perfectly fine from command prompt. I am even able to fire queries and display the results but the same code gives me "Bad File Descriptor" when run from the website (CGI script called from an HTML page).
Have tried so many things but could not get through this.
Kindly advise.
I am using Perl 5.8 with Apache 2.2 on Win XP SP2, all configured and working fine. I am able to run perl programs from command prompt. I am also able to call CGI scripts from HTML pages using Apache and it works fine.
The problem is with the database connectivity using WIN32::ODBC. Look at the following code:
my $DSN = "ABC";
my $connection = new Win32::ODBC($DS N) or die "Could not open connection to DSN because of [$!]";
It works perfectly fine from command prompt. I am even able to fire queries and display the results but the same code gives me "Bad File Descriptor" when run from the website (CGI script called from an HTML page).
Have tried so many things but could not get through this.
Kindly advise.
Comment