perl-modperl mailing list archives

Site index · List index
Message view « Date » · « Thread »
Top « Date » · « Thread »
From Bob Smith <bobsmi...@marketweighton.com>
Subject Re: Premature end of script headers
Date Tue, 13 Jan 2004 16:20:56 GMT
Steve Markham wrote:

> Whenever I try to run a perl script on my server, I keep getting "Internal
> Server Error."  The error logs say "premature end of script headers."  My
> httpd.conf file looks fine, the permissions on the cgi-bin directory and the
> cgi file itself are fine... everything looks good... so why do I keep
> getting this error?  How do I fix it?

another way to do it:

use CGI;
my $cgi = new CGI;

and in your script before you output anything else do
print $cgi->header;

best regards
Greger


>
>
> ~Steve
>
> --
> Reporting bugs: http://perl.apache.org/bugs/
> Mail list info: http://perl.apache.org/maillist/modperl.html


-- 
Reporting bugs: http://perl.apache.org/bugs/
Mail list info: http://perl.apache.org/maillist/modperl.html


Mime
View raw message