On Sun, 13 Feb 2000, Mayur Joshi wrote:

> There some problem while using Red Hat Linux 6.0, Perl 5.0005, CGI.pm module
> 2.56 & Apache 1.3
> 
> When I use CGI functions in the script the script doesnt run & gives me
> Netscape error.  The Document contained no data. Try again later or
> contact server administration. 

Does this happen with all scripts?

Try it with a siple script that doesn't use CGI.pm:

#!/usr/bin/perl -w

print "Content-type: text/plain\n\n";
print "Hello Perl\n";

__END__

see if it gives you the same problem.


Another possible problem could be uploading the file.

Are you running the script on your own machine or are you FTPing it to a
remote server?

If you FTP it, you have to do it in ASCII mode.  Don't use AUTO or BINARY
as most FTPua's don't recognise .pl and .cgi files as ASCII.  They will
upload as binary, and CR/LF pairs will not go through correctly.  This
will cause your program to terminate abnormally in most cases.  (It would
most likely get stuck at the first line itself)

Philip



To subscribe / unsubscribe goto the site www.ilug-bom.org ., click on the mailing list 
button and fill the appropriate information 
and submit. For any other queries contact the ML maintener

Reply via email to