在php编译时添加一些指定的参数来达到加载附加ini文件的目的: --with-config-file-path=PATH Set the path in which to look for php.ini [PREFIX/lib] 这个是指定php.ini的位置 --with-config-file-scan-dir=PATH Set the path where to scan for configuration files 这个是指定附加的ini配置文件的目录位置,此目录下的ini文件会被追加到php.ini配置中
在php编译时添加一些指定的参数来达到加载附加ini文件的目的:
--with-config-file-path=PATH
Set the path in which to look for php.ini [PREFIX/lib] 这个是指定php.ini的位置
--with-config-file-scan-dir=PATH
Set the path where to scan for configuration files 这个是指定附加的ini配置文件的目录位置,此目录下的ini文件会被追加到php.ini配置中
http://php.net/manual/zh/function.php-ini-scanned-files.php