Get max_execution_time in PHP script

后端 未结 4 1287
刺人心
刺人心 2021-02-04 23:28

I know it is possible to set the maximum execution time in a script using either:

ini_set(\'max_execution_time\', 30);

or

set_t         


        
4条回答
  •  星月不相逢
    2021-02-04 23:47

    you can try

    $max_time = ini_get("max_execution_time");
    echo $max_time;
    

    and you can use this variable the way you want to :)

提交回复
热议问题