简体   繁体   English

配置Wamp Server以运行WML页面

[英]Configuring Wamp Server to Run WML Pages

my server is wamp 2.0 (apache 2.2.11), I am trying to run WML page, but each time the emulator show me a download dialogue. 我的服务器是wamp 2.0(apache 2.2.11),我试图运行WML页面,但是每次模拟器都向我显示下载对话框。

I have tried to add the WML MIME Types as below and restarted the server: 我尝试如下添加WML MIME类型并重新启动服务器:

text/vnd.wap.wml wml
text/vnd.wap.wmlscript wmls
image/vnd.wap.wbmp wbmp

but nothing happened. 但是什么也没发生。 also I tried to change the header in the PHP page to be WML : 我也尝试将PHP页面中的标头更改为WML:

header("Content-type: text/vnd.wap.wml; charset=ISO-8859-1");

it doesn't work. 它不起作用。

any suggestion please. 任何建议。

Assuming you have Apache Web server installed on your machine. 假设您的计算机上安装了Apache Web服务器。 So now we will tell you how to enable WAP functionality in your Apache web server. 因此,现在我们将告诉您如何在Apache Web服务器中启用WAP功能。

So locate Apache's file httpd.conf which is usually in /etc/httpd/conf, and add the following lines to the file and restart the server: 因此,找到通常位于/ etc / httpd / conf中的Apache文件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 http://www.tutorialspoint.com/wml/wml_quick_guide.htm

声明:本站的技术帖子网页,遵循CC BY-SA 4.0协议,如果您需要转载,请注明本站网址或者原文地址。任何问题请咨询:yoyou2525@163.com.

 
粤ICP备18138465号  © 2020-2024 STACKOOM.COM