PHP + WAP mobile website development environment configuration details

Source: Internet
Author: User
& Nbsp; 1. A mobile terminal with the WAP user proxy function (such as a WAP mobile phone) sends a WAP service request to a website through a micro-browser running internally. The request is intercepted by the WAP gateway and the information content is encoded and compressed to reduce network data traffic. A mobile terminal with the WAP user proxy function (such as a WAP mobile phone) sends a WAP service request to a website through a micro-browser running internally. This request is first intercepted by the WAP gateway and encoded and compressed to reduce network data traffic. at the same time, the WAP protocol is converted to the HTTP protocol as needed.

2. the protocol transfers the processed requests to the corresponding WAP server. On the WAP server side, the requested page is directly interpreted by the server script based on the page extension and other attributes, and then output to the user through the gateway.

I introduced some knowledge about how to build the development environment. Because I used php and apache to develop wap sites. Therefore, add the following section to the AddType section of the http. conf file of apache.
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

Restart Apache. this is OK.

Tested code
Header ("Content-type: text/vnd. wap. wml ");
Echo (" ");
Echo"";
Echo ("

");
Echo date ("l dS of f y h: I ")."
";
Echo 'Hello World !, Hi ';
Echo ("

");
?>

Contact Us

The content source of this page is from Internet, which doesn't represent Alibaba Cloud's opinion; products and services mentioned on that page don't have any relationship with Alibaba Cloud. If the content of the page makes you feel confusing, please write us an email, we will handle the problem within 5 days after receiving your email.

If you find any instances of plagiarism from the community, please send an email to: info-contact@alibabacloud.com and provide relevant evidence. A staff member will contact you within 5 working days.

A Free Trial That Lets You Build Big!

Start building with 50+ products and up to 12 months usage for Elastic Compute Service

  • Sales Support

    1 on 1 presale consultation

  • After-Sales Support

    24/7 Technical Support 6 Free Tickets per Quarter Faster Response

  • Alibaba Cloud offers highly flexible support services tailored to meet your exact needs.