Page WAP (Wireless Communication Protocol) is an open global standard for communication between digital mobile phones, personal handheld devices (PDAs, etc.) and computers. Because the static WAP page can not satisfy the user's personalized service
Write PHP/WML Code
Now we write the first PHP/WML page, the name INDEX.WML
? Php
Header ("CONTENT-TYPE:TEXT/VND.WAP.WML");
Header ("Cache-control:no-cache, must-revalidate");
Header ("Pragma:no-cache");
Echo (". XML version= ' 1.0 '? > ");
?
First of all to determine whether the php.ini settings to open the GD extension function, the test is as follows
Print_r (Gd_info ());
If there is a printout of the contents below, then the GD function is open:
Array
(
[GD Version] =>
Tutorials | Application instance PHP generate WAP page
WAP (Wireless Communication Protocol) is an open global standard for communication between digital mobile phones, personal handheld devices (PDAs, etc.) and computers. Because the static WAP
PHP//header ("content-type:text/html; Charset=utf8 ");//header (" Content-type:text/html;charset=utf-8 "); $end=Array();$id=$_post[' ID '];$name=$_post[' Name '];$age=$_post[' Age '];$sex=$_post[' Sex '];$end[' Name ']=$name;$mysql _server_name= ' 12
Ideally, the three codes are unified into GBK or utf-8, so the parsing is normal. But how can it not be unified?Like what:--php's code is utf-8.--mysql's code is utf-8.--The browser encoding is GBKAt this point, just consider PHP and the browser can,
Ideally, the three codes are unified into GBK or utf-8, so the parsing is normal. But how can it not be unified? For example:--php encoding is UTF-8--MYSQL encoding is utf-8--browser encoding is GBK at this time, just consider PHP and browse
PDO is a public class for mysql database operations. We can directly use pdo to operate databases without having to customize the class, but in the default php configuration, pdo is not enabled, so we must first in php. enable it in ini. You need to
The common method to accept POST data is $ _ POST. In fact, there are many function changes that can be accepted in addition to this method. Let's take a look at the following for details. The common method to accept POST data is $ _ POST. In fact,
The day before yesterday, I want to make a small function for the website, that is, to send an email to the Administrator when the user leaves a message. We all know that there is a mail function in PHP, but the server must have the mail server
I searched for four answers online and the results were different. Which one is correct? Still none. Do you have a good solution? Solution !!!? Phpheader (content-type: texthtml; charsetutf-8); $ aabcde. php; $ bab1234c. php; functiongetRelativePath
It can be used for entertainment projects to get together idioms and determine whether the received value is an idiom. None? Php *** Jasmine robot Website: www.itpk.cn * Jasmine robot online experience: www. itpk. cnexperience. php * header (Content-
Cross-site scripting is short for CSS, but because CSS has been widely used in the field of web design ), therefore, Cross is abbreviated to X with similar pronunciation. However, early files still use CSS to represent Cross-site
In view scripts, you often need to execute certain complex functions, such as formatting a date, generating a form object, or displaying an action connection. You can use the helper class to complete these operations.
Use $ this-> helpername () to
The first line is bigger. After reading the notes summarized by kohana. None? Phpheader (Content-type: texthtml; charsetutf-8); define (, str_replace (\, ,__ DIR _); set_exception_handler (array (Factory, last_fun )); set a user-defined exception
The output variable in php adds brackets. Php output variables increase brackets. what is the writing method? See the following code: Copy the code as follows? Phpheader (Content-Type: texthtml; charsetutf-8); $ test1 variable 1; echo front php
Welcome to the Linux community forum and interact with 2 million technical staff to go to PHP to convert the RMB amount to Chinese capital :? Phpheader (Content-Type: texthtml; charsetutf-8); error_reporting (2); functioncny ($ ns) {static $
First, PHP dynamic generation
The first step: write the JS code directly in the PHP file and declare it as a JavaScript file in the headerCopy CodeThe code is as follows:
Step two: Escape JavaScript code with PHP outputCopy CodeThe code is as
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.