How do I include a php.ini file in another php.ini file?

PHPServer Side ProgrammingProgramming

The .ini files from the main php,ini file can’t be included. Instead, while compiling PHP, the line


can be added.

The ‘PATH’ in the above line refers to the location where the configuration file is to be scanned.

During compile time, PHP will look for each and every .ini file in that specific directory, apart from searching in the normal php.ini file.

Updated on 07-Apr-2020 13:05:48