Cannot include .ini files in the main php,ini file. Instead, this line
--with-config-file-scan-dir=PATH
can be added when compiling PHP.
The "PATH" in the above line refers to the location of the configuration file to be scanned.
When compiling, PHP looks for every .ini file in that particular directory in addition to searching within the normal php.ini file.
The above is the detailed content of How to include one php.ini file within another php.ini file?. For more information, please follow other related articles on the PHP Chinese website!