The htmlmeta and link generated by php are marked in the body tag, and there is a blank line at the top of the browser. 1. html generated using the smarty template in php has a blank line at the top of the browser.
2. use firedebug to find that
Among the many predefined SERVER variables in PHP, $ _ SERVER [& quot; REQUEST_URI & quot;] is frequently used, but this variable is only supported by apache. therefore, we need a more general method to obtain the value of REQUEST_URI. This article
XML (Extensible Markup Language) is a W3C standard used for easy interaction between Web applications and servers and data storage and use.
1. XML introduction
XML (Extensible Markup Language) is a W3C standard used for easy interaction between Web
Writing a program is the form of html code displayed by the browser. Therefore, we should first study these five types. Numbers, Floating Points, and Boolean types are value types. in English: int, float, and bool, you can see how they are
In the previous article, I used cookies and discuz databases to retrieve user names, user groups, user IDs, and other information, but that information is not necessarily accurate, because the auth value in the COOKIE is used for dynamic login
In PHP programming, the generation of random numbers is particularly important. We need to use a random number to display random records (such as video, user records, and article IDs) on our page ). We can also use random numbers to design any
Php learning loop structure implementation code. For more information, see.
The code is as follows:
/* Loop structure* 1. while loop* While (expression)*{* Loop body; // execute repeatedly until the expression is false.*}* 2. do-while loop* 3.
Common P4 servers generally support up to 0.1 million independent IP addresses per day. if the access traffic is larger than this, you must first configure a dedicated server with higher performance to solve the problem, check whether the server
Compare multiple cycles and move the maximum number to the top of each comparison. During each loop, find the maximum value in the remaining variables and then reduce the query range. After multiple loops, the array is sorted.
The code is as
This article mainly describes the memory usage when MySQL returns a large number of results in PHP based on principles, manuals, and source code analysis. it also involves the use of MySQLCAPI. yesterday, a colleague mentioned in the PHP discussion
10 advanced PHP skills to improve php efficiency.
1. use an SQL injection memo formThe basic principle is never to trust the data submitted by users.
Another rule is to escape the data when you send or store it ).
It can be summarized as: filter
This chapter briefly introduces some internal mechanisms of the Zend Engine, which are closely related to Extensions and can also help us write more efficient PHP code. I. basic knowledge
This chapter briefly introduces some internal mechanisms of
Empty () only detects variables, and any non-variables will cause parsing errors. In other words, the following statement does not work: empty (addslashes ($ name ))
Empty-check whether a variable is empty
Report a bug description
Bool empty (mixed
In the fourth part of the Chinese character encoding Study Series, PHP analyzes the conversion principle of Chinese characters, mainly discusses the methods for converting Chinese characters into decimal and hexadecimal formats, and master the
After executing the update statement, insert statement, or delete statement in php + mysql, you must determine whether the data has been updated. For more information, see. First of all, I suggest you navigate through the problem. The php Manual is
Encoding conversion between gb2312 and unicode the following example converts gb2312 to an encoding conversion between gb2312 and unicode in the form of & quot; & amp; #20840; & quot;
The following example converts gb2312 to "full ".
The iconv
The numeric amount is converted to the Chinese capital amount function StringInt $ num the lowercase number to be converted or the lowercase string
The code is as follows:
/*** Function for converting a numeric amount to a Chinese capital amount*
Now everyone has countless accounts and passwords, which cannot be remembered. The principle is to complete authentication through the mail server pop service, or use SMTP, the addition of SSL has enhanced security. now everyone has countless
PHP database operations object-oriented advantages we all know how to obtain the required rows (records) from Mysql, read data, and then access some changes. Obviously, it is also very direct, and there is nothing behind this process. However, when
Return, break, and contiue are language structures, just like if statements. However, exit is a function.
Purpose: output a message and terminate the current script.
If a piece of text contains multiple ending scripts, exit from the current
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