Hello.
I have a strange situation in that this script will
run fine on 1 box but not on another. They are both
W2K servers running apache.
When I run the following script as the apache user
from a command prompt it displays without errors:
* * * *
#!d:/perl/bin/perl
use CGI qw(:standard);
use CGI::Carp qw(fatalsToBrowser);
use DBI;
use DBD::ODBC;
$dsn = "DBI:ODBC:driver\=Microsoft Access Driver
\(\*.mdb\)\;dbq\=d:\\test.mdb";
$query = new CGI;
print header(), start_html("Disk Space date range"),
h1 ("Disk Space date range");
print p"dsn is $dsn";
my $dbh = DBI->connect($dsn, "", "") or die "print
ERROR!!! - $DBI::errstr\n";
* * * *
As you can see it's pretty basic - it just tries to
connect to an access database.
The issue I'm having is then when I put this script in
apache's cgi-bin directory and then try and access it
with a browser I get an error message:
Software Error:
print ERROR!!! - [Microsoft][ODBC Driver Manager]
Invalid string or buffer length (SQL-S1090)(DBD:
db_login/SQLConnect err=-1)
Can anyone shed any light on what might be happening
here or do I need to subscribe to one of the other
lists?
Thanks,
PJ
http://mobile.yahoo.com.au - Yahoo! Mobile
- Exchange IMs with Messenger friends on your Telstra or Vodafone mobile phone.
_______________________________________________
Perl-Win32-Admin mailing list
[EMAIL PROTECTED]
To unsubscribe: http://listserv.ActiveState.com/mailman/mysubs