<tfoot id='QiVIA'></tfoot>

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

        • <bdo id='QiVIA'></bdo><ul id='QiVIA'></ul>
        <legend id='QiVIA'><style id='QiVIA'><dir id='QiVIA'><q id='QiVIA'></q></dir></style></legend>

      1. <small id='QiVIA'></small><noframes id='QiVIA'>

      2. 定期执行 PHP 脚本的最佳方法?

        Best way to periodically execute a PHP script?(定期执行 PHP 脚本的最佳方法?)

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

              <tbody id='qkRBj'></tbody>
            <i id='qkRBj'><tr id='qkRBj'><dt id='qkRBj'><q id='qkRBj'><span id='qkRBj'><b id='qkRBj'><form id='qkRBj'><ins id='qkRBj'></ins><ul id='qkRBj'></ul><sub id='qkRBj'></sub></form><legend id='qkRBj'></legend><bdo id='qkRBj'><pre id='qkRBj'><center id='qkRBj'></center></pre></bdo></b><th id='qkRBj'></th></span></q></dt></tr></i><div id='qkRBj'><tfoot id='qkRBj'></tfoot><dl id='qkRBj'><fieldset id='qkRBj'></fieldset></dl></div>
              <bdo id='qkRBj'></bdo><ul id='qkRBj'></ul>
            • <legend id='qkRBj'><style id='qkRBj'><dir id='qkRBj'><q id='qkRBj'></q></dir></style></legend>
            • <tfoot id='qkRBj'></tfoot>
                  本文介绍了定期执行 PHP 脚本的最佳方法?的处理方法,对大家解决问题具有一定的参考价值,需要的朋友们下面随着跟版网的小编来一起学习吧!

                  问题描述

                  如果我可以完全访问服务器,我可能会想出一种方法来做到这一点,但问题是它只是一个托管服务,除了FTP 访问外,我什么都没有.>

                  我想定期运行一个 PHP 脚本来检查过时/损坏的内容、聚合新内容、删除未使用的文件等,但是该脚本可能需要长达 60 秒来执行(由于内容的聚合),我觉得在处理更新一小时后访问该网站的第一个用户的请求时执行它就像一个笨蛋:P

                  24/7 离开我的家用电脑来安排请求不是一种选择.

                  解决方案

                  您可以使用在线 cron 服务来假装您拥有 cron 访问权限.

                  用你想执行的内容创建php文件

                  免费 Cron 在线网站

                  设置您的免费在线 cron 以每 x 分钟执行一次该文件.

                  I'd probably figure out a way to do this if I had full access to the server, however the problem is it's just a hosting service which leaves me with nothing but FTP access.

                  I would like to run a PHP script periodically to check for outdated/broken content, aggregate new content, delete files not in use etc, however the script can take up to 60 seconds to execute (due to aggregation of content) and I feel like an ass to just execute it while processing a request of the first user that visits the website an hour after it's been updated :P

                  Leaving my home PC on 24/7 to schedule requests is not an option.

                  解决方案

                  You can use an online cron service to essentially pretend like you have cron access.

                  Create php file with contents you would like executed

                  Free Cron Online Website

                  Set up your free online cron to execute that file every x minutes.

                  这篇关于定期执行 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 的问题)

                      <tbody id='bf4H3'></tbody>
                  1. <small id='bf4H3'></small><noframes id='bf4H3'>

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

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

                          <tfoot id='bf4H3'></tfoot>

                          • <bdo id='bf4H3'></bdo><ul id='bf4H3'></ul>