What is the difference between local value and master value

前端 未结 3 1535
鱼传尺愫
鱼传尺愫 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:01

    hosted website will check local values in .htaccess or .user.ini first (These files are in your local website folder also can say local level configuration files).

    Local values overrides Master values, so php will check the local values first.

    master value set in php.ini (main php configuration file) run following commands in terminal to find the correct path

    php -i | grep 'Configuration File'
    

    or

    php -i | grep php.ini
    

    so even if we set master values in php.ini, we also need to check local values .htaccess or .user.ini

提交回复
热议问题