1, location and ":" No space between, otherwise it will be wrong.
2, before using the header can not have any output.
3. The PHP code after the header will also be executed.
Here is a comparison with the redirect Response.Redirect in asp:
Example 1:
'%23
' and password= ' Mypass
Id=-1 Union Select 1,1,1
Id=-1 Union Select char ($), char (97)
Id=1 Union Select 1,1,1 from
Id=1 Union select 1,1,1 from admin
Id=1 Union select 1,1,1 from user
Userid=1 and Password=mypass
Userid=1 and Mid
First, use the header method to set the message header Cache-control
QUOTE:
Header (' Cache-control:private, Must-revalidate '); Support page Bounce
Second, use the Session_cache_limiter method
QUOTE:
Note to write before the Session_Start
Ideal for database administrators who are unfamiliar with database operations commands, here's how to install the tool:
1. Download the phpMyAdmin online first, and then unzip to the web directory that can be accessed (if it is virtual space, you
When you use a template, you encounter a problem: it is cumbersome to display paging information, and n multiple templates have paging blocks.
For example:
---Total 20 records, current 3/5 page first prev Next last GO-----
The first to encounter
The database stores approximately hundreds of thousands of IP records, with the following record set:
+----------+----------+------------+---------+---------+--------+--------+
| Ip_begin | Ip_end | country_id | prov_id | city_id | isp_id | Netbar
Copy CodeThe code is as follows:
if (defined (' Const_name ')) {
Do something
}
Variable detection is the use of isset, note that variables are not declared or declared when the assignment value is Null,isset return false, such as:
Copy the Code
The intent of MySQL injection is to take over the website database and steal the information. Common open source databases, such as MySQL, have been used by many Web developers to store important information such as passwords, personal information,
"^the": matches a string that begins with "the";
"Of despair$": matches a string ending with "of despair";
"^abc$": matches the string starting with ABC and ending with ABC, in fact only ABC matches it;
"Notice": matches the string containing the
This example is under Wiondws XP
IIS5.1
php5.2.1 (Zip)
MySQL5.0.37
phpmyadmin2.10.0.2
ZendOptimizer-3.2.6
The installation and configuration
installation of IIS
1 Insert the windowsxp SP2 System installation CD in the optical drive
2 in the
First establish the database Cake_ext, and execute the following SQL text:
CREATE TABLE ' companies ' (
' id ' int (one) not NULL auto_increment,
' company ' varchar (+) not NULL,
' Price ' decimal (8,2) is not NULL,
' Change ' decimal (8,2)
Collected from the Internet, is said to be Yahoo's face test.
1. Which of the following won't add John to the users array?
1. $users [] = ' John ';
2. Array_add ($users, ' John '); Wrong
3. Array_push ($users, ' John ');
4. $users | | = ' John ';
Match double-byte characters (including kanji): [^\x00-\xff]
Application: Calculates the length of a string (a double-byte character length meter 2,ascii character 1)
String.prototype.len=function () {return This.replace ([^\x00-\xff]/g, "AA").
The collection of images from the IMG tag, there are a lot of JavaScript scripts and useless information, it is necessary to replace the desired, such as Alt. First look at the content to filter, I randomly copied out:
Copy CodeThe code is as
▓ Kit Introduction
The most important thing about pear is that there are a lot of libraries available for developers to refer to for free, and the libraries will be packaged, and each suite will be placed in a file called Package.xml. This is the
curl_close-closing a Curl session
curl_copy_handle-Copy all the contents and parameters of a Curl connection resource
curl_errno-returns a numeric number that contains the current session error information
curl_error-returns a string containing the
There are some features not added to, such as automatic renaming, image processing and so on. You can add them as needed.
Use:
$up = new Upfile (root_path. ' data/'. Date ("Ym", Time ()), array (' gif ', ' jpg ', ' jpeg '), true);
$fileimg =
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