/ php tutorial ini_set change php.ini configuration features
Use ini_set can quickly modify the php.ini configuration settings Oh, you do not need to open php.ini, especially when you do not have to modify php.ini permissions on the virtual host will find the function of this function, the following few examples It
* /
// ini_set has the ability to change php.ini settings. This function takes two arguments: the name of the configuration variable that needs to be adjusted, and the new value of the variable.
// For example, increase the maximum execution time when a script appears:
$ old_max_execution_time = ini_set ('max_execution_time', 120);
echo "old timeout is $ old_max_execution_time <br />";
$ max_execution_time = ini_get ('max_execution_time');
echo "new timeout is $ max_execution_time <br />";
echo 'function sets supported in this install are: <br />';
$ extensions = get_loaded_extensions ();
foreach ($ extensions as $ each_ext)
{
echo "$ each_ext <br />";
echo '<ul>';
$ ext_funcs = get_extension_funcs ($ each_ext);
foreach ($ ext_funcs as $ func)
{
echo "<li> $ func </ li>";
}
echo '</ ul>';
}
?>