PHP & Others

wml 에서 ASP,PHP,JSP,CGI 언어별 헤드 선언문

컨텐츠 정보

본문

ASP,PHP,JSP,CGI 언어별 헤드 선언문

-WML-
ASP - <% Response.ContentType="text/vnd.wap.wml"%>
JSP - <%@ page contentType="text/vnd.wap.wml"%>
PHP - <?PHP header("Content-Type:text/vnd.wap.wml"); ?>
CGI - print "Content-type: text/vnd.wap.wml\\n\\n";

-HDML-
ASP - <% Response.ContentType="text/x-hdml;charset=KS_C_5601-1987"%>
JSP - <%@ page contentType="text/x-hdml;charset=KS_C_5601-1987"%>
PHP - <?PHP header("Content-Type:text/x-hdml;charset=KS_C_5601-1987"); ?>
CGI - print "Content-type: text/x-hdml;charset=KS_C_5601_1987\\n\\n";

-MHTML-
ASP - <% Response.ContentType="text/html;charset=KS_C_5601-1987"%>
JSP - <%@ page contentType="text/html;charset=KS_C_5601-1987"%>
PHP - <?PHP header("Content-Type:text/html;charset=KS_C_5601-1987"); ?>

Head가 위와 같이 선언되지 않은 경우는 Contenttype Error(http406 error) 발생

관련자료

댓글 0
등록된 댓글이 없습니다.
Today's proverb
남을 비난하는 것만큼 쉬운 일은 없다. 어떤 일이 그릇되었다는 것을 아는 데는 그리 많은 것이 필요하지 않다. 하지만 어떻게 하면 그것을 다시 바르게 할 수 있는가를 아는 데는 남다른 눈썰미가 있어야 한다. (빌 로저스)