- SAPI module specific location: PHPIniDir "D:/dev/php-5.2.6-Win32" (httpd.conf)
- The PHPRC environment variable: SetEnv PHPRC "D:/dev/php-5.1.2-Win32"(httpd.conf)
- As of PHP 5.2.0, the following registry locations are searched in order:
HKEY_LOCAL_MACHINE/SOFTWARE/PHP/IniFilePath (Windows Registry location) - Current working directory (except CLI)
- The web server's directory (for SAPI modules), or directory of PHP (otherwise in Windows)
- Windows directory (C:/windows or C:/winnt) (for Windows),or --with-config-file-path compile time option
- More information: Chapter 7. Runtime Configuration
php.ini path
最新推荐文章于 2021-03-26 21:04:51 发布