Verification: a143cc29221c9be0

Php change php ini settings

Содержание

ini_get()

This function accepts a setting name as the argument and returns its current value. If you placed this function after ini_set(), you would notice that it returns the newly assigned value (not the original php.ini value).

get_cfg_var()

This function is similar to ini_get(). Difference is it returns the original value in php.ini even after an ini_set(). To illustrate this, make sure you have enabled display_errors in your php.ini and run following script.

';
echo get_cfg_var('display_errors');

?>

You would see the output as below.

0
1