>> Delete No. 45529 article
No. [질문]cgi이상한 내용이 출력 되요..(에러
메시지없음 ㅠ.ㅠ)

등록 2002-03-25 19:35:00 By localhost     조회 1
이름 꼬닉    

 레드햇 7.2 에서 c 로 cgi짜는데
  아파치 ExecCGI 넣구..
  printf("Content-type: text/html");
 이렇게 넣어 줬는데
  http://myip/index.cgi
  이렇게 하면 브라우저에
  ?ELF`?4`?4????t??h??h?? Content-type: text/html
  <html>
  blar~~blar
  </html>
  이렇게 보이구요 </html> 뒤에도 이상한거 붙어요 ㅠ.ㅠ
  왜 이렇게 나올까요 ㅠ.ㅠ
  참고로 소스도 붙일께요...
  
#include <stdio.h>
   int main() {
         printf("Content-type: text/html");
         printf("<html>");
        printf("<head>");
         printf("<meta HTTP-EQUIV="Content-Type" CONTENT="text/html; charset=EUC-KR">");
         printf("<title>welcome to test home~~~</title>");
          printf("</head>");
         printf("<body>");
         printf("우앙~~ 잘 보여쑤면 조켄눈뎅..");
          printf("</body>");
         printf("</html>");
         return(0);
    }
 
  cgi고수님들 좀 도와 주세여~~ ㅠ.ㅠ
 --
삽질은 언제까정..
[관리자] 패스워드를 입력 하십시오. 답장이 존재하면 함께 삭제됩니다.[ 목록 | 이전 ]
패스워드:    

Copyleft 1999-2026 by JSBoard Open Project
Theme Designed by IDOO All right reserved