note 128995 added to features.commandline.options
| From: | dch at main dot php dot net | Date: | Fri, 03 Nov 2023 10:33:08 +0000 |
| Subject: | note 128995 added to features.commandline.options | ||
| Groups: | php.notes | ||
| Request: | Send a blank email to php-notes+get-220951@lists.php.net to get a copy of this message | ||
If you would like to see the PHP's current configuration using the -i switch from the shell
command line with php.ini specified, then the order of arguments is important. Putting -i after -c
gives the intended result.
Info is printed out for the default php.ini (cli)
$ php -i --php-ini /etc/php/7.4/fpm/php.ini | grep -i "loaded conf"
Loaded Configuration File => /etc/php/7.4/cli/php.ini
Info is printed out for the desired php.ini (fpm)
$ php --php-ini /etc/php/7.4/fpm/php.ini -i | grep -i "loaded conf"
Loaded Configuration File => /etc/php/7.4/fpm/php.ini
----
Server IP: 45.112.84.4
Probable Submitter: 45.91.157.134 (proxied: 83.148.33.121)
----
Manual Page -- https://php.net/manual/en/features.commandline.options.php
Edit -- https://main.php.net/note/edit/128995
Del: integrated -- https://main.php.net/note/delete/128995/integrated
Del: useless -- https://main.php.net/note/delete/128995/useless
Del: bad code -- https://main.php.net/note/delete/128995/bad+code
Del: spam -- https://main.php.net/note/delete/128995/spam
Del: non-english -- https://main.php.net/note/delete/128995/non-english
Del: in docs -- https://main.php.net/note/delete/128995/in+docs
Del: other reasons-- https://main.php.net/note/delete/128995
Reject -- https://main.php.net/note/reject/128995
Search -- https://main.php.net/manage/user-notes.php