Apache용 마임타입(MIMETYPE) 설정 사항
#HDML
text/x-hdml;charset=KS_C_5601-1987 hdml
#WML
image/vnd.wap.wbmp wbmp
text/vnd.wap.wml wml
application/vnd.wap.wmlc wmlc
application/vnd.wap.wmlscriptc wmlsc
text/vnd.wap.wmlscript wmls
text/vnd.wap.wmlscript wmlscript
text/vnd.wap.wmlscript ws
application/vnd.wap.wmlscriptc wsc
# UP-WML
image/vnd.lgtwap.sis si9
image/vnd.stiwap.sis si7
#mHTML
image/nbmp nbmp
image/sis sis si6
image/toy toy
audio/nsnd nsnd
audio/ma1 ma1
audio/ma2 ma2
audio/pmd pmd
IIS/PWS용 마임타입(MIMETYPE) 설정 사항
1. WML(011/017)
.wbmp image/vnd.wap.wbmp
.wml text/vnd.wap.wml
.wmlc application/vnd.wap.wmlc
.wmlsc application/vnd.wap.wmlscriptc
.wmls text/vnd.wap.wmlscript
.wmlscript text/vnd.wap.wmlscript
.ws text/vnd.wap.wmlscript
.wsc application/vnd.wap.wmlscriptic
2. HDML(017/019)
.hdml text/x-hdml;charset=KS_C_5601-1987
3. UP-WML(017)
.si7 image/vnd.stiwap.sis
4. UP-WML(019)
.si9 image/vnd.lgtwap.sis
5. MHTML
.nbmp image/nbmp
.sis image/sis
.si6 image/sis
.toy image/toy
.nsnd audio/nsnd
.ma1 audio/ma1
.ma2 audio/ma2
.pmd audio/pmd
-------------------------------------------------------------------------------------------------------------------
Resin용 마임타입(MIMETYPE) 설정 사항
<!--MIME Type-->
<mime-mapping extension='.hdml' mime-type='text/x-hdml;charset=KS_C_5601-1987' />
<mime-mapping extension='.wbmp' mime-type='image/vnd.wap.wbmp' />
<mime-mapping extension='.wml' mime-type='text/vnd.wap.wml' />
<mime-mapping extension='.wmlc' mime-type='application/vnd.wap.wmlc'/>
<mime-mapping extension='.wmlsc' mime-type='application/vnd.wap.wmlscriptc' />
<mime-mapping extension='.wmls' mime-type='text/vnd.wap.wmlscript' />
<mime-mapping extension='.wmlscript' mime-type='text/vnd.wap.wmlscript' />
<mime-mapping extension='.ws' mime-type='text/vnd.wap.wmlscript' />
<mime-mapping extension='.wsc' mime-type='application/vnd.wap.wmlscriptc' />
<mime-mapping extension='.si9' mime-type='image/vnd.lgtwap.sis' />
<mime-mapping extension='.si7' mime-type='image/vnd.stiwap.sis' />
<mime-mapping extension='.nbmp' mime-type='image/nbmp' />
<mime-mapping extension='.sis' mime-type='image/sis' />
<mime-mapping extension='.si6' mime-type='image/si6' />
<mime-mapping extension='.toy' mime-type='image/toy' />
<mime-mapping extension='.nsnd' mime-type='audio/nsnd' />
<mime-mapping extension='.ma1' mime-type='audio/ma1' />
<mime-mapping extension='.ma2' mime-type='audio/ma2' />
<mime-mapping extension='.pmd' mime-type='audio/pmd' />
<!--MIME Type-->
-------------------------------------------------------------------------------------------------------------------
Tomcat용 마임타입(MIMETYPE) 설정 사항
=======================================
<mime-mapping>
<extension>hdml</extension>
<mime-type>text/x-hdml;charset=KS_C_5601-1987</mime-type>
</mime-mapping>
===================================================================
<mime-mapping>
<extension>wbmp</extension>
<mime-type>image/vnd.wap.wbmp</mime-type>
</mime-mapping>
<mime-mapping>
<extension>wml</extension>
<mime-type>text/vnd.wap.wml</mime-type>
</mime-mapping>
<mime-mapping>
<extension>wmlc</extension>
<mime-type>application/vnd.wap.wmlc</mime-type>
</mime-mapping>
<mime-mapping>
<extension>wmlsc</extension>
<mime-type>application/vnd.wap.wmlscriptc</mime-type>
</mime-mapping>
<mime-mapping>
<extension>wmls</extension>
<mime-type>text/vnd.wap.wmlscript</mime-type>
</mime-mapping>
<mime-mapping>
<extension>wmlscript</extension>
<mime-type>text/vnd.wap.wmlscript</mime-type>
</mime-mapping>
<mime-mapping>
<extension>ws</extension>
<mime-type>text/vnd.wap.wmlscript</mime-type>
</mime-mapping>
<mime-mapping>
<extension>wsc</extension>
<mime-type>application/vnd.wap.wmlscriptc</mime-type>
</mime-mapping>
=============================================================
<mime-mapping>
<extension>si9</extension>
<mime-type>image/vnd.lgtwap.sis</mime-type>
</mime-mapping>
<mime-mapping>
<extension>si7</extension>
<mime-type>image/vnd.stiwap.sis</mime-type>
</mime-mapping>
================================================================
<mime-mapping>
<extension>nbmp</extension>
<mime-type>image/nbmp</mime-type>
</mime-mapping>
<mime-mapping>
<extension>sis si6</extension>
<mime-type>image/sis</mime-type>
</mime-mapping>
<mime-mapping>
<extension>toy</extension>
<mime-type>image/toy</mime-type>
</mime-mapping>
<mime-mapping>
<extension>nsnd</extension>
<mime-type>audio/nsnd</mime-type>
</mime-mapping>
<mime-mapping>
<extension>ma1</extension>
<mime-type>audio/ma1</mime-type>
</mime-mapping>
<mime-mapping>
<extension>ma2</extension>
<mime-type>audio/ma2</mime-type>
</mime-mapping>
<mime-mapping>
<extension>pmd</extension>
<mime-type>audio/pmd</mime-type>
</mime-mapping>
************ 추가된 내용 *************
WML SKT용
확장자 MIME 설명
.wbmp image/vnd.wap.wbmp Wap Bitmap과 SK전용 SIS이미지용
.wml text/vnd.wap.wml
.wmlc application/vnd.wap.wmlc
.wmlsc application/vnd.wap.wmlscriptc
.wmls text/vnd.wap.wmlscript SKT 멀티미디어 서비스용
.wmlscript text/vnd.wap.wmlscript
.ws text/vnd.wap.wmlscript
.wsc application/vnd.wap.wmlscriptic
.mmf application/x-skt-lbs LBS 서비스용
--------------------------------------------------------------------
M$ MHTML KTF용
확장자 MIME 설명
.nbmp image/nbmp 이미지
.sis image/sis 이미지
.si6 image/sis 이미지
.toy image/toy 이미지
.nsnd audio/nsnd 1poly
.ma1 audio/ma1 4poly
.ma2 audio/ma2 16poly
.pmd audio/pmd 16poly
.ma3 audio/ma3 40poly
.ma5 audio/ma5 64poly
.vib audio/vib 진동설정
.ndwn application/ndwn 벨,캐릭터 Download
--------------------------------------------------------------------
UP-WML LGT용 (SKT용에 추가 하세요)
확장자 MIME 설명
.si9 image/vnd.lgtwap.sis 2KB 이하 SIS이미지
************ PHP를 이용한 WML코드 *************
<?
// WML과 PHP를 쓰기위한 헤더설정
header("Content-type:text/vnd.wap.wml"); // MIME 설정
header("Cache-Control: no-cache, must-revalidate"); // 캐시사용하지 않음.
// WML DTD선언
echo("<?xml version=\"1.0\" encoding=\"ks_c_5601-1987\"?>");
echo("<!DOCTYPE wml PUBLIC \"-//OPENWAVE.COM//DTD WML 1.3//EN\"
\"http://www.openwave.com/dtd/wml13.dtd\">");
require("dbconfig.php"); // DB설정파일 포함
// PHP를 이용한 WML코드
echo("
<wml>
<head>
<meta http-equiv=\"Cache-Control\" content=\"max-age=0\" forua=\"true\"/>
</head>
<card id=\"input\" title=\"입력\" newcontext=\"true\">
<do type=\"accept\" label=\"입력\" >
<go href=\"insert.php?table=wmlphone\" method=\"post\">
<postfield name=\"name\" value=\"$(name)\"/>
<postfield name=\"telnumber\" value=\"$(telnumber)\"/>
<postfield name=\"email\" value=\"$(email)\"/>
</go>
</do>
<do type=\"options\" label=\"취소\">
<refresh/>
</do>
<p>
성명 :
<input name=\"name\" format=\"MMM*M\"/>
전화번호 :
<input name=\"telnumber\" format=\"NNN*N\"/>
이메일 :
<input name=\"email\" format=\"MMM*M\"/>
</p>
</card>
</wml>
");
?>
'WML' 카테고리의 다른 글
wml programming tip (0) | 2011.10.18 |
---|