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) 발생

관련자료

등록된 댓글이 없습니다.
Today's proverb
나무에게는 무엇이든 달라고 요구하는 뻔뻔한 친구가 아니라, 자신을 가꿔줄 친구들이 필요하다." (지금보다 더 나은 내가 되고 싶다중에서)