AN HTTPD ゲストブック/コメント集(2000年8月30日13:03)


中田昭雄 nakata@st.rim.or.jp 2000/08/30 21:23

かづおさん、
それは hello.cgi の中身がおかしいです。
エラーメッセージからの推定では、
最初の行に "hello.cgiの中は以下の2..." などと書いてあるようですから、まずその行を削除してください。
そして最後の行(4行目)も余計な行のようなので、その行も削除してください。
つまり中の2行だけを hello.cgi の中身にするのが(たぶん)正解です。

それでうまくいかない場合は、hello.cgi の中身がどうなっているかお知らせ下さい。


かづお kadu@postpet2.so-net.ne.jp 2000/08/30 13:03

はじめまして。どうしてよいか分からずカキコしました。
下のようなエラーがでました。どなたか分かる方いらっしゃいましたらよろしくお願いします。なにぶんダウンロードしたばかりで困っています。よろしくお願いします。

Error 500
CGI エラー - Content-Type ヘッダが正しくありません。
CGI 出力メッセージ:

Can't modify constant item in predecrement at C:\www\kent\public_html\hello.cgi line 1, near "hello."
Unrecognized character \202 ignored at C:\www\kent\public_html\hello.cgi line 1.
Unrecognized character \314 ignored at C:\www\kent\public_html\hello.cgi line 1.
Unrecognized character \222 ignored at C:\www\kent\public_html\hello.cgi line 1.
Unrecognized character \206 ignored at C:\www\kent\public_html\hello.cgi line 1.
Unrecognized character \202 ignored at C:\www\kent\public_html\hello.cgi line 1.
Unrecognized character \315 ignored at C:\www\kent\public_html\hello.cgi line 1.
Unrecognized character \210 ignored at C:\www\kent\public_html\hello.cgi line 1.
Unrecognized character \310 ignored at C:\www\kent\public_html\hello.cgi line 1.
Unrecognized character \211 ignored at C:\www\kent\public_html\hello.cgi line 1.
Unrecognized character \272 ignored at C:\www\kent\public_html\hello.cgi line 1.
Unrecognized character \202 ignored at C:\www\kent\public_html\hello.cgi line 1.
Unrecognized character \314 ignored at C:\www\kent\public_html\hello.cgi line 1.
Number found where operator expected at C:\www\kent\public_html\hello.cgi line 1, near "cgiの中は以下の2"
syntax error at C:\www\kent\public_html\hello.cgi line 1, near "cgiの中は以下の2"
Unrecognized character \215 ignored at C:\www\kent\public_html\hello.cgi line 1.
syntax error at C:\www\kent\public_html\hello.cgi line 4, at EOF
Execution of C:\www\kent\public_html\hello.cgi aborted due to compilation errors.