- 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
最新推荐文章于 2023-03-17 11:10:20 发布
本文介绍了在Windows环境下配置PHP的环境变量及路径的具体方法,包括如何设置PHPIniDir和PHPRC环境变量,以及PHP5.2.0之后搜索注册表位置的详细步骤。
610

被折叠的 条评论
为什么被折叠?



