<bdo id='8wb8E'></bdo><ul id='8wb8E'></ul>

<small id='8wb8E'></small><noframes id='8wb8E'>

  • <tfoot id='8wb8E'></tfoot>
    <i id='8wb8E'><tr id='8wb8E'><dt id='8wb8E'><q id='8wb8E'><span id='8wb8E'><b id='8wb8E'><form id='8wb8E'><ins id='8wb8E'></ins><ul id='8wb8E'></ul><sub id='8wb8E'></sub></form><legend id='8wb8E'></legend><bdo id='8wb8E'><pre id='8wb8E'><center id='8wb8E'></center></pre></bdo></b><th id='8wb8E'></th></span></q></dt></tr></i><div id='8wb8E'><tfoot id='8wb8E'></tfoot><dl id='8wb8E'><fieldset id='8wb8E'></fieldset></dl></div>

      1. <legend id='8wb8E'><style id='8wb8E'><dir id='8wb8E'><q id='8wb8E'></q></dir></style></legend>
      2. 使脚本执行无限

        make script execution to unlimited(使脚本执行无限)
            <bdo id='RBXcY'></bdo><ul id='RBXcY'></ul>
            <legend id='RBXcY'><style id='RBXcY'><dir id='RBXcY'><q id='RBXcY'></q></dir></style></legend>

            <small id='RBXcY'></small><noframes id='RBXcY'>

              <tbody id='RBXcY'></tbody>
            1. <tfoot id='RBXcY'></tfoot>
                <i id='RBXcY'><tr id='RBXcY'><dt id='RBXcY'><q id='RBXcY'><span id='RBXcY'><b id='RBXcY'><form id='RBXcY'><ins id='RBXcY'></ins><ul id='RBXcY'></ul><sub id='RBXcY'></sub></form><legend id='RBXcY'></legend><bdo id='RBXcY'><pre id='RBXcY'><center id='RBXcY'></center></pre></bdo></b><th id='RBXcY'></th></span></q></dt></tr></i><div id='RBXcY'><tfoot id='RBXcY'></tfoot><dl id='RBXcY'><fieldset id='RBXcY'></fieldset></dl></div>

                  本文介绍了使脚本执行无限的处理方法,对大家解决问题具有一定的参考价值,需要的朋友们下面随着跟版网的小编来一起学习吧!

                  问题描述

                  我需要在 localhost (xampp) 中运行一个脚本,它将生成 14400 条记录并将它们添加到数据库中,我设置了 max_execution_time = 50000000000,我不知道是否可以通过将其设置为 0 或 -1.但是我之前用这个 max_execution_time 到 50000000000 尝试了这个脚本,但它在某个点停止了,我不知道还有什么可以限制执行时间,我已经运行了很多次,我厌倦了等待和再次失败,什么我应该在再次运行此脚本之前进行更改,这次完成工作吗?

                  I need to run a script into localhost (xampp) which will generate 14400 records and adds them into database, I have set the max_execution_time = 50000000000, I dont know if I can make it unlimited by setting it to 0 or -1. But I tried this script before with this max_execution_time to 50000000000 and yet it stoped at certain point, I dont know what else could limit the execution time, I have been running this a lot of times and I am tired of waiting and failing again, what should I change before I run this script again and this time to finish the job?

                  推荐答案

                  您必须将其设置为零.零意味着脚本可以永远运行.在脚本开头添加以下内容:

                  You'll have to set it to zero. Zero means the script can run forever. Add the following at the start of your script:

                  ini_set('max_execution_time', 0);
                  

                  参考max_execution_time

                  注意:

                  set_time_limit(0);
                  

                  会有同样的效果.

                  这篇关于使脚本执行无限的文章就介绍到这了,希望我们推荐的答案对大家有所帮助,也希望大家多多支持跟版网!

                  本站部分内容来源互联网,如果有图片或者内容侵犯了您的权益,请联系我们,我们会在确认后第一时间进行删除!

                  相关文档推荐

                  DeepL的翻译效果还是很强大的,如果我们要用php实现DeepL翻译调用,该怎么办呢?以下是代码示例,希望能够帮到需要的朋友。 在这里需要注意,这个DeepL的账户和api申请比较难,不支持中国大陆申请,需要拥有香港或者海外信用卡才行,没账号的话,目前某宝可以
                  PHP通过phpspreadsheet导入Excel日期,导入系统后,全部变为了4开头的几位数字,这是为什么呢?原因很简单,将Excel的时间设置问文本,我们就能看到该日期本来的数值,上图对应的数值为: 要怎么解决呢?进行数据转换就行,这里可以封装方法,或者用第三方的
                  mediatemple - can#39;t send email using codeigniter(mediatemple - 无法使用 codeigniter 发送电子邮件)
                  Laravel Gmail Configuration Error(Laravel Gmail 配置错误)
                  Problem with using PHPMailer for SMTP(将 PHPMailer 用于 SMTP 的问题)
                  Issue on how to setup SMTP using PHPMailer in GoDaddy server(关于如何在 GoDaddy 服务器中使用 PHPMailer 设置 SMTP 的问题)
                  <i id='pmJXC'><tr id='pmJXC'><dt id='pmJXC'><q id='pmJXC'><span id='pmJXC'><b id='pmJXC'><form id='pmJXC'><ins id='pmJXC'></ins><ul id='pmJXC'></ul><sub id='pmJXC'></sub></form><legend id='pmJXC'></legend><bdo id='pmJXC'><pre id='pmJXC'><center id='pmJXC'></center></pre></bdo></b><th id='pmJXC'></th></span></q></dt></tr></i><div id='pmJXC'><tfoot id='pmJXC'></tfoot><dl id='pmJXC'><fieldset id='pmJXC'></fieldset></dl></div>

                    <small id='pmJXC'></small><noframes id='pmJXC'>

                      <legend id='pmJXC'><style id='pmJXC'><dir id='pmJXC'><q id='pmJXC'></q></dir></style></legend>

                    • <tfoot id='pmJXC'></tfoot>
                        <bdo id='pmJXC'></bdo><ul id='pmJXC'></ul>

                            <tbody id='pmJXC'></tbody>