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
To use a function defined in a file in a PHP script, you need to use the
include (), include_once (), require (), and require_once (), a function library file is loaded into the script program. In the previous section we talked about how to use a
Let's talk about the differences between require (), include (), require_once () and include_once () in php. This article introduces the usage and difference of four types of functions for calling external files in php. For more information, see.
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,
To apply an include statement to reference a file
Note: When you apply an external file using include, the external file is introduced and read only when the code executes to the include statement, and when an error occurs in the referenced
File loadingReview:There are 4 file-loaded syntax forms (note, not function): Include, include_once, require, require_once;Their nature is the same, both for loading / importing / including / loading an external file into the current PHP code. They
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;
This article describes the PHP four call external file function usage and differences, there is a need to know friends can refer to.
There are two ways to refer to a file: Require and include. Two ways to provide different use elasticity.
Require
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.