I use PHP through the command line interface (CLI).
How to determine where the php.ini is used by PHP in this mode?
I use PHP through the command line interface (CLI).
How to determine where the php.ini is used by PHP in this mode?
Starting from version 5.2.3, the php command supports the magic --ini option, which displays information about the configuration files used.
Example of use:
php --ini Example output:
Configuration File (php.ini) Path: /usr/dev/php/5.2/lib Loaded Configuration File: /usr/dev/php/5.2/lib/php.ini Scan for additional .ini files in: (none) Additional .ini files parsed: (none) This and other options for the php command are described in the official documentation .
Source: https://ru.stackoverflow.com/questions/509472/
All Articles