Home >Backend Development >PHP Tutorial >The difference between Local Value (local variable) and Master Value (main variable) in phpinfo

The difference between Local Value (local variable) and Master Value (main variable) in phpinfo

PHP中文网
PHP中文网Original
2017-03-18 15:18:192905browse

Many parts of

phpinfo() have two Column: Local Value and Master Value

1. Master Value is the content in the PHP.ini file.

2.Local value is the setting in the current directory. This value will overwrite the corresponding value in the Master Value.

Due to the settings of WEB Sever Config or .htaccess, or the setting of ini_set() in the program, the settings in the current directory will Different from the settings in the PHP.ini file

PS: The settings of php.ini can be overridden in the Apache configuration file, which may be in conf/httpd.conf or conf.d/***.conf, generally In conf.d/php.conf

The above introduces the difference between Local Value (local variable) and Master Value (main variable) in phpinfo, including the content. I hope it will be helpful to friends who are interested in PHP tutorials.

Related articles:

Why phpinfo() has not changed after modifying php.ini

How to block the phpinfo() function

Use PHPINFO to implement the PHP configuration statistics process

Statement:
The content of this article is voluntarily contributed by netizens, and the copyright belongs to the original author. This site does not assume corresponding legal responsibility. If you find any content suspected of plagiarism or infringement, please contact admin@php.cn