the error from error_log is
"[Sat May 01 01:10:17 2004] [error] [client 127.0.0.1] Premature end of script headers: perldiver.cgi"
and
#!/usr/bin/perl
# Note: This program currently cannot run with -T. The Module::Info module
# does not perform taint checking. However, all user input is taint-checked
# in Perl Diver.
use lib '.';
do 'perldiver.conf' or die "Can't load conf file $!";
BEGIN{
$ENV{'PATH'} = '/bin:/usr/bin';
delete @ENV{ 'IFS', 'CDPATH', 'ENV', 'BASH_ENV' };
}
......
is the original beginning of the cgi file. i downloaded the a .zip file from Internet.
The problem is solved by just simply adding -w after the first line which is
#!/usr/bin/perl
now i changed it into
#!/usr/bin/perl -w
and it could work!
but the question still i can't figure out, why when the same file i downloaded by using gFTP can be excuted successfully, but the file i just downloaded by clicking the link in web browser doesn't work??
if i'd like to test those cgi files in my harddriver, do i need to add "-w" to the first line of each file manually??
|