When I display phpinfo();
i see two columns: local value
and master value
. When the web-server will choose local value
and when it will choose master value
?
相关问题
- Views base64 encoded blob in HTML with PHP
- Laravel Option Select - Default Issue
- PHP Recursively File Folder Scan Sorted by Modific
- Can php detect if javascript is on or not?
- Using similar_text and strpos together
"Master Value" (from php.ini) could be overridden with "Local Value" in httpd.conf, .htaccess or other Apache configuration with php_value directive.
The first is the local value, the second is the global value. The local value overrides the global value and is set within PHP, HTACCESS, etc. whereas the global value is set within php.ini. To answer your question, the first value is used.
master
is either the value compiled into PHP, or set via a mainphp.ini
directive. e.g. The value that's in effect when PHP fires up, before it executes any of your code.local
is the value that's currently in effect at the moment you callphpinfo()
. This local value is the END result of any overrides that have taken place viaini_set()
calls,php_value
directives in httpd.conf/.htaccess, etc...e.g.
Given that, the
master
value isqux
, and thelocal
value iskittens
.