The answer is: when the server uses the php feature (function) to include any file, the source of the file to be included is not strictly filtered, so that it can contain a malicious file, we can construct this malicious file to achieve the evil
[PHP] include details. The order in which include files are loaded is: first, find the file in the relative include_path of the current working directory, and then the order in which inclu include files are loaded in the directory where the current
Require and include are almost the same, except for different methods of handling failures. Require generates an E_COMPILE_ERROR-level error when an error occurs. In other words, it will cause the script to stop and include will only generate a
1. What is "Remote File Inclusion Vulnerability "?The answer is: when the server uses the php feature (function) to include any file, the source of the file to be included is not strictly filtered, so that it can contain a malicious file, however,
Include File Loading SequenceThe order of searching for contained files is:
First, search for the corresponding include_path in the current working directory,Find the corresponding directory named include_path.For example, include_path is ., the
Require
Require and include are almost exactly the same, in addition to handling failures differently. Require generates an E_COMPILE_ERROR level error when an error occurs, in other words, causes the script to abort and the include only generates a
PHP Tutorial Configuration Chinese Narration
Let's see what you see, php.ini.
[PHP]
;;;;;;;;;;;; WARNING;;;;;;;;;;;;; This is the default settings file for new PHP installations.; By default, PHP installs itself with a configuration suitable for;
Include () in php carries a reference transfer instance. Include is a function that calls files in php. by default, it cannot be like include (a. php? Id1) in this way, the following describes how to solve the problem that include does not include a
Solve the problem of PHP include with parameters. php include can load an external PHP file whose parameter is a file name. since it is a file name, it cannot contain parameters. In php, if the include file must contain parameters, there is only one
Solve the problem of PHP include with parameters. php include can load an external PHP file whose parameter is a file name. since it is a file name, it cannot contain parameters. In php, if the include file must contain parameters, there is only one
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.