Home  >  Article  >  php教程  >  PHP Wap开发环境配置

PHP Wap开发环境配置

WBOY
WBOYOriginal
2016-06-06 19:52:201194browse

欢迎进入Linux社区论坛,与200万技术人员互动交流 >>进入 1. 具有WAP用户代理功能的移动终端(如WAP手机),通过内部运行的微浏览器向某一网站发送WAP服务请求。该请求先由WAP网关截获,对信息内容进行编码压缩,以减少网络数据流量,同时根据需要将WAP协议转

欢迎进入Linux社区论坛,与200万技术人员互动交流 >>进入

  1. 具有WAP用户代理功能的移动终端(如WAP手机),通过内部运行的微浏览器向某一网站发送WAP服务请求。该请求先由WAP网关截获,对信息内容进行编码压缩,以减少网络数据流量,同时根据需要将WAP协议转换成HTTP协议。

  2. 协议将处理后的请求转送到相应WAP服务器。在WAP服务器端,根据页面扩展名等属性,被请求的页面直接或由服务器端脚本解释后输出,再经过网关传回给用户。

  介绍了一些知识现在开始开发环境的搭建了。因为我是用php和apache开发wap站点的。所以在apache的http.conf文件的 AddType部分加入以下部分。

  AddType text/vnd.wap.wml .wml

  AddType application/vnd.wap.wmlc .wmlc

  AddType text/vnd.wap.wmls .wmls

  AddType application/vnd.wap.wmlsc .wmlsc

  AddType image/vnd.wap.wbmp .wbmp

  AddType image/vnd.wap.wbmp .wbmp

  重启Apache,这就OK了

  测试性代码

  

  header(”Content-type: text/vnd.wap.wml”);

  echo(”\n”);

  echo “”-//WAPFORUM//DTD WML 1.1//EN\”\”http://wapforum.org//DTD//wml_1.1.xml\”>\n”;

  echo (”\n\n

”);

  echo date(”l dS of F Y h:i A”).”
\n”;

  echo ‘Hello World!,你好’;

  echo (”

\n\n”);

  ?>

PHP Wap开发环境配置

Statement:
The content of this article is voluntarily contributed by netizens, and the copyright belongs to the original author. This site does not assume corresponding legal responsibility. If you find any content suspected of plagiarism or infringement, please contact admin@php.cn
Previous article:PHP接口的学习Next article:PHP生成缩略图的实现