【问题标题】:Users getting blank screen on long uploads (which fail). Would that be max_execution_time or max_input_time?用户在长时间上传时出现空白屏幕(失败)。那是 max_execution_time 还是 max_input_time?
【发布时间】:2012-02-14 17:21:35
【问题描述】:

我需要更改 php.ini 中的设置,以便让我们的脚本有更多时间处理上传。

那会是 max_execution_time 吗?还是 max_input_time?

【问题讨论】:

    标签: php


    【解决方案1】:

    此外,如果您仍然遇到问题,请确保将 upload_max_filesize 和 post_max_size 设置为足够的级别。

    【讨论】:

      【解决方案2】:

      您应该寻找 max_execution_time。如果您不想,则无需在 php.ini 中更改它。我在几个脚本中使用了这一行:

      ini_set("max_execution_time", "3000");
      

      【讨论】:

      • 请注意,“max_execution_time”开始计数上传到网络服务器完成并调用 php 来解析文件之后。意味着上传时间不计入 max_execution_time。见post of @Pekka for details
      猜你喜欢
      • 2011-05-26
      • 2011-01-31
      • 2015-06-21
      • 1970-01-01
      • 2020-06-23
      • 1970-01-01
      • 1970-01-01
      • 2014-11-23
      • 1970-01-01
      相关资源
      最近更新 更多