This is really not a DBI question, but since little related I'll try to
help.
The http error you are getting can be very helpful to us, but here are some
suggestions.
Try running in command line and see if that works, if yes then the problem
is not with the script, but with your headers or permissions.
Make sure you output the Content-type header before any other output, also
make sure that the script has execute permissions for everyone else users,
since browsers execute as nobody. Also if you develop on win32 and then FTP
to Unix/Linux, some FTP programs don't convert to Unix line endings and you
get unexecutable script. Your solution is to either telnet to site and open
the script in vi or pico and then just resave with out doing anything else,
which will convert, or get an FTP program that you know does the conversion.
I would first still try to run in command prompt, since errors sometimes are
produced before the header is outputted and can't even get to the browser
even if you have CGI::Carp (FatalsToBrowser) enabled.
Ilya Sterin
-----Original Message-----
From: John Mulkerin
To: [EMAIL PROTECTED]
Sent: 03/08/2001 8:01 AM
Subject: Problem with Tie::DBI
I'm trying to use TicketTool with Tie::DBI to hook to a mysql db. Every
time I get to this part of the code (sub authenticate), I get a "This
page
can't be displayed" error screen on my web browser and nothing in my
httpd-error.log or mysql.log. Can anyone help me? I've validated I do
have the right table, key etc. when I go into this part of TicketTool.
Anyone have an idea how I can troubleshoot this further?
tie my %DB, 'Tie::DBI', {
db => $self->{TicketDatabase},
table => $table, key => $userfield,
user => $dbuser, password => $dbpass,
} or return ('TT1', "couldn't open databse", '');
Thanks
John Mulkerin