see details below:
browser error:
Internal Server Error
The server encountered an internal error or misconfiguration and was unable to complete your request.
script:
rights:#!/usr/bin/perl use CGI::Carp('fatalsToBrowser'); use CGI qw(:all); use DBI; print header; $dbh = DBI->connect("DBI:mysql:testjvd:localhost","root","mysqljvd",{ +PrintError => 0}) || die $DBI::errstr; $sth=$dbh->prepare("SELECT * FROM gebr"); $sth->execute(); while ( @ columns = $sth->fetchrow ) { print ( ( map { "$_ " } @columns ) , "\n") ; } $sth->finish(); $dbh->disconnect; exit;
apache error_log:
Tue Sep 11 01:45:16 2001 error (2)No such file or directory: exec of /intranet_attema/cgi-bin/perl_select_gebr.pl failed Tue Sep 11 01:45:16 2001 error client 192.168.1.16 Premature end of script headers: /intranet_attema/cgi-bin/perl_select_gebr.pl
test from command-line:
root@jvd_1 cgi-bin# perl perl_sel*
test1 Jan (returns correct value)
root@jvd_1 cgi-bin#
what's (still) wrong here ? (need some wisdom)
Jan van Dijk,The Netherlands
Thanks in advance....
Edited by boo_radley : formatting
In reply to again mySQL by jvd
| For: | Use: | ||
| & | & | ||
| < | < | ||
| > | > | ||
| [ | [ | ||
| ] | ] |