Is it mandatory to configure PHP in order to scan configuration INI files on a per-directory basis(i.e. .htaccess files in my case) by PHP?

后端 未结 1 952
走了就别回头了
走了就别回头了 2021-01-07 15:19

I\'m using Windows 10 Home Single Language 64-bit Operating System on my machine.

I\'ve installed the latest copy of XAMPP server o

相关标签:
1条回答
  • 2021-01-07 15:52

    The PHP_INI_SCAN_DIR environment variable is not related to per-directory settings, it does something entirely different. Most Linux distributions build software packages in such a way that settings are kept in different files, so it's easier to install and uninstall individual packages. So this variable is just a trick to split the main configuration file into an undetermined number of separate files inside a directory:

    /etc/php.d/
    

    how the setting made in one environment(i.e. CLI) has effect in an entirely different environment(i.e. SAPI)?

    It doesn't. The Apache module will not read the FastCGI settings just like Apache will not read IIS settings.

    0 讨论(0)
提交回复
热议问题