First of all, the magic of PHP is supported by character data types, some students wrote such a code:
for ($c = ' a '; $c Echo $c. ' ';}
But it turns out it's not the A to Z he wants.A b c d e F g h i j k l m n o p q R S t u v w x y z aa ab AC ad
In the process of PHP development, often need to send post requests, Post compared to get a lot more secure, and the amount of data transferred is also large. The following PHP programmer Rechesson to bring you together to summarize the several
Traverse the current directory and subdirectories. Encode all file translations into UTF-8
The code is as follows
Copy Code
PHP iconv.phpexec it on root dir$path = DirName (__file__);Tree ($path);function Encodefiles
The first way
$data = eval (' Return '. Iconv (' GBK ', ' Utf-8′,var_export ($data, True) ').Here the Var_export function can output or return a string representation of a variable. This function returns the structure information about the variable
Illegal characters to filter$ArrFiltrate =array ("'", ";", "union");The URL to jump after an error is not filled in the default previous page$STRGOURL = "";Whether the value in the array existsfunction Funstringexist ($StrFiltrate, $ArrFiltrate)
Development, basically will display_errors,error_reporting open, help improve development efficiency, on-line, basically will turn off the page error information, in the error information, put in the file.
One, the error_log configuration of
The variable becomes a static variable as long as it is preceded by a keyword static.
function test (){static $NM =;$NM = $nm *;Print $nm. " ";}First time execution, $nm =Test ();First time execution, $nm =Test ();First time execution, $nm =Test ()
First, the initial site, the general need to do without WWW domain name 301 to go with the WWW domain name;
The code is as follows:Options +followsymlinksRewriteengine onRewritecond%{http_host} ^111cn.net [NC]Rewriterule ^ (. *) $
At first, there was a php.ini to see if the GD library was turned on,Next, we will consider each detail of the image generation step.Send a generated image to the browserCreate_image ();Exit ();
function Create_image (){Let ' s generate a totally
We can use the Extract () function, such as adding extract ($_post) to the front of the receiving page script, extract ($_get), such statements, and exporting several super variable array values for the form processing, as shown in the following
There's been a very hot question recently--print or sort the two ordered arrays. Just see this problem when also a bit of Mongolia, the best algorithm must use the orderly characteristics.
Think of a will find it is not very difficult, if the array
Let's build the injection statement.Enter in input boxa% and 1=2 Union select 1,username,3,4,5,6,7,8, password,10,11 fromalphaauthor# into the SQL statement.
SELECT * from alphadb where the title like%a% and 1=2 Union Select1,username,3,4,5,6,7,8,
Misuse of include 1. The reason of the loophole: Include is the most commonly used function in writing PHP Web sites, and supports relative paths. There are many PHP scripts that directly take an input variable as an include parameter, resulting in
There are a lot of functions in PHP that we rarely hear about, but they have very useful functions, such as glob (). Many people want to simply traverse the directory, if you know this function, will be twice the effort.
Glob is included in the
HTML
First, to understand what is the enctype attribute of the
Attribute Value Descriptionapplication/x-www-form-urlencoded default mode, all characters are encoded before they are sent to the server (spaces are converted to "+" plus, special
Web service also called XML Web Service WebService is a lightweight independent communication technology that can receive requests from the Internet or other systems on an intranet. is to use the software services provided by soap on the web, using
The following tools and software must be installed:– The shell script that modifies the password;–sudo access rights;–apache or LIGHTTPD Web server;–php Service-side program.
Step 1: Install shell scripts that can modify user passwords
This script
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