>> Edit article
이름
제목
패스워드
레드햇 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