You can use ini_set to quickly modify the php.ini configuration settings without opening php.ini. Especially when you are on a virtual host and you do not have permission to modify php.ini, you will find the role of this function. Here are a few examples. Bar.
/php tutorial ini_set changes the php.ini configuration function
You can use ini_set to quickly modify the php.ini configuration settings without opening php.ini. Especially when you are on a virtual host and you do not have permission to modify php.ini, you will find the role of this function. Here are a few examples. Bar.
*/
//ini_set has the function of changing 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:
$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 '