An in-depth understanding of ini configuration in PHP this article will not detail the purpose of an ini configuration item, which has been explained in the manual. I just want to explore the implementation mechanism of php from a specific point of
This article does not describe the purpose of an INI configuration item in detail, as explained in the manual. I just want to dig into PHP's implementation mechanism from a specific point of view, which involves some knowledge of the PHP kernel:-)
There is such a section in the Discuz code:If (isset ($ _ REQUEST ['globals']) OR isset ($ _ FILES ['globals']) {Exit ('request tainting attempted .');}Register_globals is a control option in php. It can be set to off or on. The default value is off.
As we all know, when register_globals = on in PHP. ini, various variables are injected with code, such as request variables from HTML forms. In addition, PHP does not require initialization before using variables. This may cause insecurity. If
The most common ini functions in PHP. For PHP configuration files, the most commonly used ini function PHP configuration function is a few ini _ * functions, mainly for configuration file operations, in fact, there are four functions: ini_get,
The most common ini function analysis in PHP is for the PHP. ini configuration file. * Ini_get (): gets the option value of the configuration file. This function can be used by many people to obtain the option value in the configuration file. if it
Php configuration functions are several ini _ * functions, mainly for configuration file operations. In fact, there are four functions: ini_get, ini_set, ini_get_all, and ini_restore. The most useful ones are ini_set and ini_get. * Ini_get (): gets
PHP provides four functions for PHP. ini operations: ini_get, ini_set, ini_get_all, ini_restoreThe most common ones are ini_set and ini_get.The functions of these two functions are described as follows:Ini_get ()
Obtain the option value of the
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.