using ini_get() for getting configuration values in php.ini

by rajesh 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);

Tagged in:

963
like
0
dislike
0
mail
flag

You must LOGIN to add comments