|
|
using ini_get() for getting configuration values in php.ini - PHP
|
Views : 444
|
|
Tagged in : PHP
|
|
|
Report This Scrap as Inappropriate We request you to choose the appropriate categroy and subcategory that suits your
objectionable concern about the scrap, So that our team can review and find out whether it violates our Guidelines or the
scrap is not suitable for all viewers.
|
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);
|
|
By rajesh, On - 2009-10-29 |
|
|
|