Ini_set changes php. the ini configuration function can be used to quickly modify php. ini configuration settings, no need to open php. ini is enough, especially when you do not modify php on the VM. the role of this function will be discovered when ini is authorized. let's look at several instances. * /// Ini_set has the ability to change the php. ini settings. This function receives two parameters: ini_set to change the php. ini configuration function
You can use ini_set to quickly modify php. ini configuration settings, no need to open php. ini is enough, especially when you do not modify php on the VM. the role of this function will be discovered when ini is authorized. let's look at several instances.
*/
// Ini_set has the ability to change php. ini settings. This function receives two parameters: the name of the configuration variable to be adjusted and the new value of the variable.
// For example, add 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
";
$ Max_execution_time = ini_get ('max _ execution_time ');
Echo "new timeout is $ max_execution_time
";
Echo 'function sets supported in this install are:
';
$ Extensions = get_loaded_extensions ();
Foreach ($ extensions as $ each_ext)
{
Echo "$ each_ext
";
Echo'
';
$ Ext_funcs = get_extension_funcs ($ each_ext );
Foreach ($ ext_funcs as $ func)
{
Echo"
- $ Func
";
}
Echo'
';
}
?>
For more details, see: http://www.111cn.net/phper/php-function/34292.htm