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

      1. <legend id='WVCKn'><style id='WVCKn'><dir id='WVCKn'><q id='WVCKn'></q></dir></style></legend>

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

          <bdo id='WVCKn'></bdo><ul id='WVCKn'></ul>
      2. <tfoot id='WVCKn'></tfoot>

        每天在特定时间执行 PHP 脚本有哪些选项?

        What options are there for executing a PHP script at a certain time every day?(每天在特定时间执行 PHP 脚本有哪些选项?)

      3. <legend id='xgNCZ'><style id='xgNCZ'><dir id='xgNCZ'><q id='xgNCZ'></q></dir></style></legend>
          <i id='xgNCZ'><tr id='xgNCZ'><dt id='xgNCZ'><q id='xgNCZ'><span id='xgNCZ'><b id='xgNCZ'><form id='xgNCZ'><ins id='xgNCZ'></ins><ul id='xgNCZ'></ul><sub id='xgNCZ'></sub></form><legend id='xgNCZ'></legend><bdo id='xgNCZ'><pre id='xgNCZ'><center id='xgNCZ'></center></pre></bdo></b><th id='xgNCZ'></th></span></q></dt></tr></i><div id='xgNCZ'><tfoot id='xgNCZ'></tfoot><dl id='xgNCZ'><fieldset id='xgNCZ'></fieldset></dl></div>
        1. <tfoot id='xgNCZ'></tfoot>
        2. <small id='xgNCZ'></small><noframes id='xgNCZ'>

              <bdo id='xgNCZ'></bdo><ul id='xgNCZ'></ul>
                  <tbody id='xgNCZ'></tbody>

                1. 本文介绍了每天在特定时间执行 PHP 脚本有哪些选项?的处理方法,对大家解决问题具有一定的参考价值,需要的朋友们下面随着跟版网的小编来一起学习吧!

                  问题描述

                  我有一个 PHP 脚本,需要在每个工作日的特定时间运行.cron 或 Windows 任务调度程序是执行此操作的唯一方法吗?
                  有没有办法从另一个 PHP 脚本中进行设置?

                  I have a PHP script that needs to be run at certain times every weekday. Is cron or Windows task scheduler the only way to do this?
                  Is there a way to set this up from within another PHP script?

                  推荐答案

                  取决于时间的精确程度.我见过使用的一种技术(称为穷人的 cron")是让经常访问的脚本(例如网站的主页)在一段时间后在第一页加载时触发任务(在数据库).

                  Depends how exact the timing needs to be. A technique I've seen used (dubbed "poor man's cron") is to have a frequently accessed script (a site's home page, for example) fire off a task on the first page load after a certain time (kept track of in the database).

                  不过,如果您需要任何形式的保证准确性,cron 或 Windows 计划任务确实是最佳选择.如果您的主机不支持它们,则是时候换一个更好的了.

                  If you need any sort of guaranteed accuracy, though, cron or a Windows scheduled task is really the best option. If your host doesn't support them, it's time to get a better one.

                  这篇关于每天在特定时间执行 PHP 脚本有哪些选项?的文章就介绍到这了,希望我们推荐的答案对大家有所帮助,也希望大家多多支持跟版网!

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

                  相关文档推荐

                  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 的问题)

                    <tfoot id='tJPnk'></tfoot>
                      <tbody id='tJPnk'></tbody>
                    1. <small id='tJPnk'></small><noframes id='tJPnk'>

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

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