Get PHP ini setting from the command line
9 May 2022 (Updated 17 May 2022)
php -r "echo ini_get('upload_max_filesize') . PHP_EOL;"
This will print the value of the upload_max_filesize
directive for the PHP CLI.
If you want to get the value for the web server process, call ini_get()
in a .php
file that’s served on a web page.
Sources
Tagged:
PHP
Thanks for your comment 🙏. Once it's approved, it will appear here.
Leave a comment