Php get ini install on command line

At the Linux command line, you can run the command to get the php ini?

I understand that I can echo phpinfo () or just look into the ini file, but I can not see the command to run, which will display the value directly on the command line.

+8
linux php
source share
1 answer
php -i | grep 'my_value' 

or

 php -r "echo ini_get('my_value');" 

or

 grep 'my_value' /path/to/php.ini 
+14
source share

All Articles