sajad torkamani
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

Leave a comment

Your email address will not be published. Required fields are marked *