CGI設置について質問 【Part2】at PHPCGI設置について質問 【Part2】 - 暇つぶし2ch■コピペモード□スレを通常表示□オプションモード□このスレッドのURL■項目テキスト952:930=932 06/09/28 01:36:02 >>950 これでいいのかな? #!/usr/local/bin/perl open(JPG, "../public_html/images/52.jpg"); read(JPG, $jpgbuff, (-s JPG)); close(JPG); print "Content-Type: image/jpeg\n\n"; binmode(STDOUT); print $jpgbuff; 実行したら、画像じゃないものがDLされてきますw; >実行結果 Content-Type: image/jpeg リ・Exif II* ・徽FXX リ・JFIF H H ロ ・ 以下ぐちゃぐちゃw >>951 うーむ。謎ですね。 #!/usr/local/bin/perl -- 、やってみましたが結果変わらずです。。。 サポートに連絡してみますね。 953:nobodyさん 06/09/28 01:37:28 LIVE HTTP HEADER っていう firefox の拡張で見た結果 GET ほにゃ~ HTTP/1.1 Host: park22.wakwak.com User-Agent: Mozilla/5.0 (Windows; U; Windows NT 5.1; ja; rv:1.8.0.7) Gecko/20060909 Firefox/1.5.0.7 Accept: text/xml,application/xml,application/xhtml+xml,text/html;q=0.9,text/plain;q=0.8,image/png,*/*;q=0.5 Accept-Language: ja,en-us;q=0.7,en;q=0.3 Accept-Encoding: gzip,deflate Accept-Charset: Shift_JIS,utf-8;q=0.7,*;q=0.7 Keep-Alive: 300 Connection: keep-alive HTTP/1.x 200 OK Date: Wed, 27 Sep 2006 16:33:42 GMT Server: Apache/2.0.59 (FreeBSD) Keep-Alive: timeout=2, max=100 Connection: Keep-Alive Transfer-Encoding: chunked Content-Type: text/plain Content-Type: text/plain が勝手に送られてるっぽいですね。 で、ふと思ったんだけど .htaccess に MIME とかそこらへんの書かれちゃってたりしません? 一応確認を。 (無いとは思いますけどね) 次ページ最新レス表示レスジャンプ類似スレ一覧スレッドの検索話題のニュースおまかせリストオプションしおりを挟むスレッドに書込スレッドの一覧暇つぶし2ch