PHP Ignoring my max_execution_time

后端 未结 3 1616
醉梦人生
醉梦人生 2020-12-28 22:58

I have some task in my script that is about converting video with ffmpeg . I do this with codeigniter 2.0.3 and locate the script at libraries and use shell_exec() to run ff

相关标签:
3条回答
  • 2020-12-28 23:32

    Solution to change set_time_limit() function in CodeIgniter.php is works, but I'm think it's not good idea to change framework's core files.

    I'm found another decision, you can call set_time_limit() where you need and it will be overlapp setting of time limit in CodeIgniter.php.

    0 讨论(0)
  • 2020-12-28 23:33

    Ok. I do this my self. I have contacted my teacher. There is a something that CodeIgniter not include this in their documentation.

    At line 103 in system/core/CodeIgniter.php

    if (function_exists("set_time_limit") == TRUE AND @ini_get("safe_mode") == 0)
    {
        @set_time_limit(300);
    }
    

    I try to change the value and it works.

    0 讨论(0)
  • 2020-12-28 23:38

    Codeigniter 2 has the set_time_limit function run with 300. After upgrading to Codeigniter 3, one thing started failing. After viewing this post, I realized that the set_time_limit call was removed in 3, so you may have to add the code in the accepted answer to your particular problem code. I would not recommend adding it back into the Codeigniter.php

    0 讨论(0)
提交回复
热议问题