【求助】有些CGI可執行,有些卻跑出500?



贊助商連結


hpo14
2004-07-13, 07:34 PM
我自己的網頁..
http://hpo14.myftp.org/cgi-bin/updown_w/updown.cgi
這個可以執行

下面這個卻不能?
http://hpo14.myftp.org/cgi-bin/BR/br2_reg.cgi

架站包:AppServ 2.4.0
這是他2.4.0版的內容


AppServ reduce file size from 24MB to 8MB but everything not cut it off.
AppServ 2.4.0

Apache 1.3.29
PHP 4.3.6
MySQL 4.0.18
Zend Optimizer 2.5.1
phpMyAdmin 2.5.6
Perl 5.8.0


他雖然有內健 perl 5.8.0,但我自己還是裝了ActivePerl的最新版...

知道我問題出在哪的人,可以幫個忙嗎?

贊助商連結


virbe
2004-07-15, 12:06 PM
加入此行
print "Content-type: text/html\n\n";

hpo14
2004-07-15, 12:53 PM
可是他的程式碼已經有了ㄝ

---------------------
print "HTTP/1.0 200 OK\n" if($no_parse_header == 1);
print "Content-type: text/html; charset=shift_jis\n\n";
print "<html><head><title>CGI Error</title></head>\n";
print "<body><h1>CGI Error</h1>\n";
print "<p>This program encountered an internal error.</p>";
print "<p><b>Error:</b> $_[0]</p>\n";
print "</body></html>";