急:请教关于CGI不能执行的问题

急:请教关于CGI不能执行的问题

环境为sco unix 5.0.7,在浏览器中不能正常执行CGI程序,可以看到HTML网页,错误提示为:

Internal Server Error
The server encountered an internal error or misconfiguration and was unable to complete your request.
Please contact the server administrator, email@somedomain.com and inform them of the time the error occurred, and anything you might have done that may have caused the error.

More information about this error may be available in the server error log.
--------------------------------------------------------------------------------

Apache/1.3.36 Server at opac.sdjnlib.net Port 80

查看日志为:

[Thu Jan 24 14:20:57 2008] [error] [client 61.179.124.82] malformed header from
script. Bad header=\xb4\xf2\xbf\xaa\xce\xc4\xbc\xfe/u/ilasII_GB\r/webpac/h: /u/i
lasII_GB/webpac/cgi-bin/EnterIlasweb

请教是何原因???
打印html的头了么?


QUOTE:
原帖由 hutule110 于 2008-1-24 15:27 发表
打印html的头了么?

怎么讲?
明白了,我可能说得不明白,就是纯html的页面文件可以正常打开,CGI的就打不开.


QUOTE:
原帖由 happyrhino 于 2008-1-24 16:04 发表



怎么讲?

use CGI;
$cgi = new CGI;

print $cgi->header();
谢谢,不过,我对CGI不熟悉,只是想知道,为什么CGI不能在sco 5.0.7中正常显示
有空找个CGI的教程先看看吧...
你输出的HTML没错..但是CGI不只是HTML..还有HTTP Header部分....
HTTP Header内容你应该写错了...