using ini_get() for getting configuration values in php.ini
by rajesh[ Edit ] 2009-10-29 11:01:10
We can get the values of the different parameters set in the configuration file php.ini using the function ini_get().
For example, if we want to know the max upload file size value which is set in php.ini as upload_max_filesize, we can use
ini_get(upload_max_filesize);
To get all the configuration values we can use the function ini_get_all();
$result = ini_get_all(); //Returns all the registered configuration options in an array.
print_r($result);