How To Read php.ini Settings in Comment Line ?

In normal circumstances we can monitorize the value of php.ini at php.

<?php

echo ini_get('post_max_size');

But in some cases we may want to monitorize from command line. Here is the codes we are going to use in such circumstances.

php -i | grep 'value'

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

grep 'value' /path/to/php.ini

Here you will enter the value of php.ini to value part. For example you may arrange as post_max_size and test it

Comments

There are no comments, make the firs comment