The following code is saved as a MD5Crypt.class.php file
The code is as follows
Copy Code
Class Md5crypt {/*** Enter description here ...* @param unknown_type $str* @return String*/Public final static function Mdsha ($STR)
1, delete HTML annotation;2, delete script, link, object, embed, IFRAME, frame, frameset and have on the beginning, including Web page effects: [^;] or expression the label of the attribute;3, delete the annotations in the CSS tutorial (prevent this
The code is as follows
Copy Code
login User:Password:Pincode:
log_demo.php Code
The code is as follows
Copy Code
Require_once ("log_aux.php");if ($_get[' a '] = = "pin") {Getpinimg ();Exit}if ($
Generally, for the incoming characters, PHP can be processed with the Addslashes function (to GET_MAGIC_QUOTES_GPC () to deal with the false, or repeat the escape! ), so as to achieve a certain level of security requirementsLike this.
Let's take a look at the Open_basedir security code.
Wrote a sentence require_once in PHP '. /zend/loader.php '; Error:Warning:require_once () [function.require-once]: Open_basedir restriction in effect. File (.. /zend/loader.php is not within the
Strpos usage
Strpos (String,find,start)
Let's look at a piece of code Strpos:
Ajax get participlePublic Function Get_segment_words () {$title = I (' title ');$content = I (' content ');$Segment = M (' Segment ');$Segment _content = M ('
First of all, we analyze 360 of the vulnerability page address "/?r=xxxxx" immediately can find the problem,? After the number is r=xxxx this r= is the problem, in PHP, the Get form of the request (in the link directly to the request) to filter some
First, configure the firewall, open 80 port, 3306 PortCentOS 7.0 defaults to using firewall as the firewall, where the iptables firewall is changed. 1. Close firewall:#停止firewall服务
systemctl Stop Firewalld.service
#禁止firewall开机启动
------The PHP language is similar to the way JavaScript is used--js with PHP is a weakly typed language weakly typed language just does not display the performance definition variable when the system automatically gives defaultSo you can define
Delete the element inside#创建数组 (0,o,2,z,1,i not)$arr =array_merge (Range (0,9), Range (' A ', ' Z '), Range (' A ', ' Z ')); #原数组$arr 2=array ("0", "1", "2", "Z", "z", "I", "I", "O", "O"); #包含要删除字符的数组#进行删除foreach ($arr as $k 1=> $v 1) {foreach ($arr
PHP + Mysql (source code) and mysql source code
The source code of a self-written comment system is shared with you, including emotices and comment mechanisms. The user name is random.
Comment on an article
Function subcomment () {$ data ['uid'] =
[Consolidate the PHP Basics] php debugging methods for white pages during development, consolidate phpOverview of this article: 1. Set the error reporting level to display the error 2. possible causes of White Pages1. [set error reporting level and
PHP Object-Oriented Programming and reflection API details, object-oriented reflection
This article describes PHP Object-Oriented Programming and reflection APIs. We will share this with you for your reference. The details are as
Public platform, webpage authorization, redirect_uri parameter error, solution !, Public redirect_uri
An error occurred while authorizing the webpage !!! The redirect_uri parameter for webpage authorization is incorrect!
In case of any problems,
Web page authorization library example based on CI framework, ci Framework Authorization example
This document describes the web page authorization Library Based on the CI framework. We will share this with you for your reference. The details are as
Fill 0 on the left of the PHP string, 0 on the right of the string, and a php string
Overview: A project usually uses automatic filling on the left, right, or even middle of a string of encoding to specify the length of the filled string, for
Common Simple Application Analysis of Smarty templates and smarty Application Analysis
This document analyzes common simple applications of Smarty templates. We will share this with you for your reference. The details are as follows:
First, you must
Php tutorialsWhat is a storage routine?A storage routine is a set of SQL statements stored on the database tutorial server. You can run these SQL statement commands by calling a specified name in the query.Why use stored procedures?We all know that
For Chinese search engines, Chinese word segmentation is one of the most basic parts of the system, because the Chinese word-based search algorithm is not very good at present. of course, this article is not about researching Chinese search engines,
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