一聚教程网:一个值得你收藏的教程网站

热门教程

php ini_set更改php.ini配置功能

时间:2022-06-24 20:19:03 编辑:袖梨 来源:一聚教程网

//ini_set具有更改php.ini设置的功能。此函数接收两个参数:需要调整的配置变量名,以及变量的新值。

//例如,在某脚本出现时增加最大执行时间(maximum execution time):

 $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 '
';
  }
?>

热门栏目