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

PHP中文网
Release: 2023-02-28 22:10:01
Original
2827 people have browsed it

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

Related labels:
source:php.cn
Statement of this Website
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
Popular Tutorials
More>
Latest Downloads
More>
Web Effects
Website Source Code
Website Materials
Front End Template
About us Disclaimer Sitemap
php.cn:Public welfare online PHP training,Help PHP learners grow quickly!