You need to output the headers before the HTML. Add a line to print
"Content-type text/html \n\n" before you output the HTML.
Jean-Michel Dault
[EMAIL PROTECTED]
On Mon, 3 May 1999, Seb wrote:
> Date: Mon, 3 May 1999 17:01:59 +0200
> From: Seb <[EMAIL PROTECTED]>
> Reply-To: [EMAIL PROTECTED]
> To: [EMAIL PROTECTED]
> Subject: [expert] cgi scripts
>
> Hi all!
>
> I'm running a Mandrake 6.0 server with Apache 1.3.6 and i made a c
> program which return an html document on stdout named test.cgi an d located
> in /home/httpd/html/seb/c . When apache try to read it he return me an
> Internal Server Error and in the log file it is malformed header for script.
> Bad header=<DOCTYPE.....
>
> What's that ?
>