【问题标题】:Configuring Wamp Server to Run WML Pages配置 Wamp 服务器以运行 WML 页面
【发布时间】:2013-07-07 16:49:42
【问题描述】:

我的服务器是 wamp 2.0 (apache 2.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");

它不起作用。

请给点建议。

【问题讨论】:

    标签: php configuration mime-types wampserver wml


    【解决方案1】:

    假设您的机器上安装了 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 .wbmp
    

    http://www.tutorialspoint.com/wml/wml_quick_guide.htm

    【讨论】:

      猜你喜欢
      • 2015-05-22
      • 2014-11-30
      • 2014-10-24
      • 2011-08-12
      • 1970-01-01
      • 1970-01-01
      • 2012-01-21
      • 2015-08-20
      • 2018-03-25
      相关资源
      最近更新 更多