What is the difference between local value and master value

前端 未结 3 1546
鱼传尺愫
鱼传尺愫 2020-12-07 22:20

When I display phpinfo(); i see two columns: local value and master value. When the web-server will choose local value a

3条回答
  •  无人及你
    2020-12-07 23:03

    master is either the value compiled into PHP, or set via a main php.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 call phpinfo(). This local value is the END result of any overrides that have taken place via ini_set() calls, php_value directives in httpd.conf/.htaccess, etc...

    e.g.

    php.ini:     foo=bar
    httpd.conf:  php_value foo baz
    .htaccess:   php_value foo qux
    ini_set:     ini_set('foo', 'kittens');
    

    Given that, the master value is qux, and the local value is kittens.

提交回复
热议问题