• <small id='BrjJv'></small><noframes id='BrjJv'>

    <tfoot id='BrjJv'></tfoot>

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

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

        每 24 小时运行一次 php 任务

        running a php task every 24 hours(每 24 小时运行一次 php 任务)
          <legend id='cgvEx'><style id='cgvEx'><dir id='cgvEx'><q id='cgvEx'></q></dir></style></legend>
          1. <tfoot id='cgvEx'></tfoot>

              <tbody id='cgvEx'></tbody>

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

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

                  本文介绍了每 24 小时运行一次 php 任务的处理方法,对大家解决问题具有一定的参考价值,需要的朋友们下面随着跟版网的小编来一起学习吧!

                  问题描述

                  我有一些函数使用 curl 从几个站点中提取信息并将它们插入到我的数据库中.我只是想知道每 24 小时执行一次这项任务的最佳方法是什么?

                  I have some functions that use curl to pull information off a couple of sites and insert them into my database. I was just wondering what is the best way to go about executing this task every 24 hours?

                  我现在正在运行 Windows,但可能会在我活着后切换到 linux(如果这有所作为).我现在在 symfomy 框架内工作.

                  I am running off windows now, but will probably switch to linux once I am live (if that makes a difference). I am working inside symfomy framework now.

                  我听说 cronjobs 可以做到这一点...但看网站似乎可以远程工作,我宁愿把东西放在家里...我可以在我的电脑上运行服务"吗?不管这意味着什么;)(听说过使用过)

                  I hear cronjobs can do this this...but looking at the site it seems to work remotely and I would rather just keep things in house...Can i just "run a service" on my computer? whatever that means ;) (have heard it used)

                  感谢您的帮助,安德鲁

                  推荐答案

                  这正是 Cron (linux) 或计划任务 (windows) 的用途.

                  This is exactly what Cron (linux) or Scheduled Tasks (windows) are for.

                  您可以在您的应用服务器上运行它们以将所有内容保存在一个地方.

                  You can run them on your application server to keep everything in one place.

                  例如,我有一个 cron 在我的家庭服务器上运行,每天备份它的 MySQL 数据库.这个过程只涉及一个系统.

                  For example, I have a cron running on my home server to backup its MySQL databases every day. Only one system is involved in this process.

                  这篇关于每 24 小时运行一次 php 任务的文章就介绍到这了,希望我们推荐的答案对大家有所帮助,也希望大家多多支持跟版网!

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

                  相关文档推荐

                  Is PHP or PHP based web framework stateful or stateless?(PHP 或基于 PHP 的 Web 框架是有状态的还是无状态的?)
                  How to parse django style template tags(如何解析 django 样式模板标签)
                  What is a good setup for editing PHP in Emacs?(在 Emacs 中编辑 PHP 的好设置是什么?)
                  How to check whether specified PID is currently running without invoking ps from PHP?(如何在不从 PHP 调用 ps 的情况下检查指定的 PID 当前是否正在运行?)
                  What#39;s the difference between escapeshellarg and escapeshellcmd?(escapeshellarg 和escapeshellcmd 有什么区别?)
                  php in background exec() function(php 后台 exec() 函数)

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

                  <legend id='437tl'><style id='437tl'><dir id='437tl'><q id='437tl'></q></dir></style></legend>
                  <tfoot id='437tl'></tfoot>
                      • <bdo id='437tl'></bdo><ul id='437tl'></ul>

                            <tbody id='437tl'></tbody>