Ini_set can be used to quickly modify the php.ini configuration settings Oh, no need to open php.ini, especially when you do not modify the php.ini of the permissions when you will find the role of this function, see a few examples below.
/php tutorial Ini_set changing php.ini configuration Features
Ini_set can be used to quickly modify the php.ini configuration settings Oh, no need to open php.ini, especially when you do not modify the php.ini of the permissions when you will find the role of this function, see a few examples below.
*/
Ini_set has the ability to change php.ini settings. This function receives two parameters: 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 (Maximum execution times):
$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 is:
';
$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 '
';
}
?>
http://www.bkjia.com/PHPjc/445441.html www.bkjia.com true http://www.bkjia.com/PHPjc/445441.html techarticle Ini_set can be used to quickly modify the php.ini configuration settings Oh, no need to open php.ini, especially when you do not modify the php.ini of the virtual host when you do not have the permissions to find this function ...