我的服务器是WAMP2.0(Apache2.2.11),我正在尝试运行WML页面,但每次模拟器都会显示一个下载对话框。
我已经尝试添加WML MIME类型,如下所示,并重新启动服务器:
text/vnd.wap.wml wml
text/vnd.wap.wmlscript wmls
image/vnd.wap.wbmp wbmp但什么都没发生。此外,我还尝试将PHP页面中的标题更改为WML:
header("Content-type: text/vnd.wap.wml; charset=ISO-8859-1");它不起作用。
有什么建议请提出来。
发布于 2014-04-29 16:08:34
假设您的机器上安装了Apache Web服务器。因此,现在我们将告诉您如何在Apache web服务器中启用WAP功能。
因此,找到Apache的文件httpd.conf,该文件通常位于/etc/httpd/conf中,并在该文件中添加以下行,然后重新启动服务器:
AddType text/vnd.wap.wml .wml
AddType text/vnd.wap.wmlscript .wmls
AddType application/vnd.wap.wmlc .wmlc
AddType application/vnd.wap.wmlscriptc .wmlsc
AddType image/vnd.wap.wbmp .wbmphttp://www.tutorialspoint.com/wml/wml_quick_guide.htm
https://stackoverflow.com/questions/17559093
复制相似问题