PHP + WAP mobile website development environment configuration details. 1. a mobile terminal (such as a WAP mobile phone) with the WAP user proxy function sends a WAP service request to a website through a micro browser running internally. The request is first intercepted by the WAP gateway. 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 ("
");
?>
Http://www.bkjia.com/PHPjc/486125.htmlwww.bkjia.comtruehttp://www.bkjia.com/PHPjc/486125.htmlTechArticle1. mobile terminals (such as WAP mobile phones) with WAP user proxy function, send WAP service requests to a website through a micro browser running internally. The request is first intercepted by the WAP gateway...