Home >Backend Development >PHP Tutorial >The difference between Local Value (local variable) and Master Value (main variable) in phpinfo
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