(1). remote_addr: IP address of the user's computer browsing the current page
(2). http_x_forwarded_for: view the gateway of the user's computer on the current page
(3). http_client_ip: Client IP Address
Use $ _ server ["remote_addr"] in PHP to
CodeAs follows:
Copy codeThe Code is as follows: $ dir = 'd: \ Program Files \ resource \ Application \ skin \ PNG \ '; // pay attention to the path here, and add two \, the first one indicates conversion, but it is easy to encounter other specific
In Apache, when configuration is not added, AcceptPathInfo is accepted by default for PHP scripts, that is:
If one/laruence/index. php exists on the server
For the following requests,Copy codeThe Code is as follows:/laruence/index.
Step 1: Build the environment
1. First check whether the php_gettext.dll file exists in your php extension directory. If not, you need
Download one or copy one from other places and put it to the php extension directory.
2. Open php. ini, find ";
Last updated on: 17:50:10
Which tool do you use to write php code?A: ZEND Studio is generally used. I currently use PDT downloaded from eclipse.org, which is faster than Zend Studio 8. Although it is based on Eclipse,The lightweight tool is
Text Box usage:
Among them, the input types include text, password, and so on. HTML5 adds a lot of input types. If you want to learn this type of knowledge, you can have a good understanding, because the finer the score, the more convenient it is
The principle is as follows:
Encryption
Plaintext: 1010 1001
Key: 1110 0011
Ciphertext: 0100 1010
The ciphertext 0100 1010 is obtained, and the decryption must be different from the key or lower.
Decryption
Ciphertext: 0100 1010
Key: 1110
Zend stores all the variables in php in a structured manner, while saving strings is different from saving arrays, the array is saved as a hash table (You know the concept that the address saved by hash effectively reduces the conflict-hash list),
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 input, escape output (FIEO). input filtering, output
I. PHP script code markThe PHP script is the content included in a pair of special tags in the file. For example, ASP is " ", PHP can be viewed as" ".
However, to adapt to XML standards to embed PHP into XML or XHTML, PHP does not recommend the use
I don't know how to write the original article into the essay.
All right, the first blog.
There are three types:
1. filter input (lightweight)
Class input_filter
Filters parameters, such as $ _ GET and $ _ POST.
The return value type is an array and
I. Logical Algebra basics:1. digits are represented in binary. All possible numbers are 0 and 1.
2. There are only three basic operations: "and", "or", and "not.
And operation is defined as: (use & Expression and Operation)
0 & 0 = 0
0 & 1 = 0
1 & 0
A valid variable name in PHP starts with a letter or underline, followed by any number of letters, numbers, or underscores. According to the normal regular expression, it will be expressed as: '[a-zA-Z _ \ x7f-\ xff] [a-zA-Z0-9 _ \ x7f-\ xff] *'.
Previously I wrote an article about array deduplication, but it is limited to one-dimensional arrays. The following functions can be used for two-dimensional arrays:
Copy codeThe Code is as follows: // remove duplicate values from a two-dimensional
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