in reply to Re: CGI Header problem/question
in thread CGI Header problem/question

Although the answer was already given, I just wanted to mention that the error really isn't much more than what I stated. The full error from the error_log:
[Sat Dec 20 10:29:44 2003] [error] (8)Exec format error: exec of /Libr +ary/WebServer/CGI-Executables/mail_it.cgi failed [Sat Dec 20 10:29:44 2003] [error] [client 192.168.1.1] Premature end +of script headers: /Library/WebServer/CGI-Executables/mail_i t.cgi

Not a lot to go on. As far as the code used, that's in the link at the top of the post. :)

Replies are listed 'Best First'.
Re: Re: Re: CGI Header problem/question
by Anonymous Monk on Dec 22, 2003 at 12:11 UTC
    The first line of the error_log that you didn't include in your original post is actually the useful one that would have given the clue as to what the problem was. The "premature end of script headers" just means that the error happened and the script aborted (or in your case never executed) before the headers could be sent. It pretty much always follows the real error message and is therefore not of any help in diagnosing a script error.