using ini_get() for getting configuration values in php.ini - PHP Send mail vote down 0 vote down 0 Views : 414
Tagged in : PHP
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




    Login to add Comments .