【问题标题】:max_execution_time always is 0max_execution_time 始终为 0
【发布时间】:2023-03-10 15:20:01
【问题描述】:

我无法更改属性max_execution_time 的值。 在php.ini 中设置为 max_execution_time = 13000。 也在.htaccess php_flag max_execution_time 130000。 在phpinfo.php

ini_set('max_execution_time','1300');
set_time_limit(13000);
phpinfo();?> 

我尝试了一切,但没有改变价值。将php-fpm 7.0apache 一起使用

【问题讨论】:

  • 重启了你的服务器?
  • @kerbholz 他当然做到了,毕竟他说他尝试了一切

标签: php apache time ini


【解决方案1】:

set_time_limit(0);

您可以使用它来避免脚本超时

【讨论】:

    猜你喜欢
    • 2014-01-09
    • 1970-01-01
    • 2011-08-15
    • 1970-01-01
    • 1970-01-01
    • 1970-01-01
    • 1970-01-01
    • 2023-01-19
    • 2015-12-18
    相关资源
    最近更新 更多