在 Windows 10 操作系统的 XAMPP 安装设置中,我在哪里可以找到 PHPIniDir 指令及其值?

Where can I find the PHPIniDir directive and its value in XAMPP installation setup on Windows 10 operating system?

我正在使用 Windows 10 Home Single Language 版本,它是 64 位操作系统

我已经在这台机器上使用 XAMPP 的最新副本安装了 Apache、PHP、MySQL。

我在PHP Manual中读到下面的句子:

php.ini is searched for in these locations (in order):

  • SAPI module specific location (PHPIniDir directive in Apache 2, -c command line option in CGI and CLI, php_ini parameter in NSAPI, PHP_INI_PATH environment variable in THTTPD)

我的机器上的一切都已正确安装。我在浏览器中检查了 phpinfo(); 的输出,但在其中的任何地方都找不到 PHPIniDir 指令及其值。

所以,请告诉我在哪里可以找到 PHPIniDir 指令及其值?

httpd-xampp.conf(Apache配置文件)中,例如:

PHPIniDir "C:/php" 

httpd-xampp.conf 文件在您的 apache 安装文件夹中,如果您使用 xampp:xampp\apache\conf\extra.

更新:

正如 OP 所指出的,xampp 包含在:

In C:\xampp\apache\conf\extra\httpd-xampp.conf file from line no. 39 to 41:

<IfModule php7_module> PHPINIDir "C:/xampp/php" </IfModule>