PHP on the form to submit special characters of the processing method to do a summary, mainly related to Htmlspecialchars/addslashes/stripslashes/strip_tags/mysql_real_escape_ Several functions, such as String, are used jointly to communicate with
The current market on the more popular PHP encryption authorization of the above software has two main types:
(1) Zend Company's Zendguard.
(2) Ioncube Company's Ioncube PHP Encode.
Zendguard can only encrypt files with PHP tags or source code
PHP htmlspecialchars, Strip_tags, addslashes is a common function in Web page program development, today to detail the use of these functions:
1. Function Strip_tags: Remove HTML and PHP tags
Note: This function removes any HTML and PHP tag
tmpl_deny_php this argument to false try the config file
' tmpl_deny_php ' => false,///The default template engine disables PHP native code
PHP code can be mixed with tags in template files, you can write arbitrary PHP statement code in the
Name of function
Use
Note
Htmlspecialchars
will be with &&, single and double quotes ' ",Greater than >, less than
&&->&'->& #039"->"<>->>
Htmlentities
Turn all characters into HTML
The name of the function
Interpretation
Introduced
Htmlspecialchars
Converts to HTML format with, single double quotes, greater than and less than
& Turn "Turn into "' Turn into & #039;> Turn >
This article describes how to remove html tags in php and the differences between strip_tags and htmlspecialchars. For more information, see
Strip_tagsRemove HTML and PHP tags.
Syntax: string strip_tags (string str );
Return value: string
This article mainly introduces two popular PHP encryption and decryption tools ZendGuard and iconCube. This article also provides an iconCube installation tutorial, for more information about PHP encryption and authorization software, see the
The phpstrip_tags () function is used to remove HTML, XML, and PHP tags from strings. This article introduces the use and basic use examples of strip_tags () functions to coders. For more information, see the definition and usage of strip_tags in
File system developed in php
1. open/close the file
Use the fopen () function and fclose () function to open/close the file respectively. When opening a file, you should pay special attention to the possibility of deleting all the file content
Example: Why do you want to learn PHP Subjective reasons: Some time ago in the school to deal with the graduation of some things, back to Shanghai began to find a job journey. Intentional work is either WPF development or ASP. NET as a backend web
The PHP function strip_tags provides the ability to remove HTML and PHP tags from strings. this function attempts to return the given string str to remove null characters, HTML and PHP markup results. The PHP function strip_tags provides the ability
This article describes how to explain htmlspecialchars, strip_tags, and addslashes in PHP. For more information, see htmlspecialchars, strip_tags, and addslashes in PHP, today we will detail the usage of these functions:
1. function strip_tags:
Example:
Why do you want to learn PHP
Subjective reasons:
Some time ago in the school to deal with the graduation of some things, back to Shanghai began to find a job journey. Intentional work is either WPF development or ASP. NET as a backend web
The phpstrip_tags () function removes the HTML, XML, and PHP tags from the string and returns the string after the tag is removed. However, when we need to retain multiple HTML tags, how can I use the phpstrip_tags () function? This article
Analysis of a bug in the strip_tags function of PHP. The PHP function strip_tags provides the ability to remove HTML and PHP tags from strings. this function attempts to return the given string str to remove null characters, HTML and PHP markup
This article describes how to remove html tags in php and the differences between strip_tags and htmlspecialchars. For more information, see strip_tags.
Remove HTML and PHP tags.
Syntax: string strip_tags (string str );
Return value: string
In order to improve work efficiency, ensure the validity and rationality of the development, and maximize the readability and reuse of the program code, improve communication efficiency, need a code writing specification. Let's develop good coding
1. Read the rich text content style from the database as follows:2. First, the pre-defined HTML entity "htmlspecialchars_decode () function (less than) and ">" CONVERT (greater than) to a character, and then strip The HTML, XML, and PHP tags
PHP Basics
first, the initial knowledge of PHPPHP is an embedded language used in combination with HTML.
1. PHP tags
Default tag
Short Mark
, you need to turn on the Short_open_tag option in php.ini short mark and other tags are not recommended
2,
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.