• <bdo id='2hkmM'></bdo><ul id='2hkmM'></ul>

        <small id='2hkmM'></small><noframes id='2hkmM'>

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

      1. <legend id='2hkmM'><style id='2hkmM'><dir id='2hkmM'><q id='2hkmM'></q></dir></style></legend>
      2. <tfoot id='2hkmM'></tfoot>

        如何在 cron 中运行 php 脚本

        How to run a php script in cron(如何在 cron 中运行 php 脚本)

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

            <bdo id='I7oew'></bdo><ul id='I7oew'></ul>
          • <small id='I7oew'></small><noframes id='I7oew'>

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

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

                  问题描述

                  我发现了很多关于此的问题和文章,但我仍然遇到一些困难.我正在使用以下命令/usr/bin/php home/domain.com/public_html/cron/script.php我收到以下错误状态:404 未找到X-Powered-By:PHP/5.2.8内容类型:text/html

                  I have found many questions and articles about this but i still have some difficulties. I'm using the following command /usr/bin/php home/domain.com/public_html/cron/script.php I receive the following error Status: 404 Not Found X-Powered-By: PHP/5.2.8 Content-type: text/html

                  未指定输入文件.

                  我正在使用 Cpanel,该文件托管在 domain.com/cron/script.php任何想法,谢谢:p

                  i'm using Cpanel, the file is hosted on domain.com/cron/script.php Anyideas, thanks :p

                  推荐答案

                  尝试:

                  wget -O - http://domain.com/cron/script.php
                  

                  看看你是否得到更好的结果.

                  and see if you get a better result.

                  添加了- O - "以不将输出写入主文件夹.

                  added "- O - " to not write output to home folder.

                  这篇关于如何在 cron 中运行 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() 函数)
                  • <legend id='uuLWM'><style id='uuLWM'><dir id='uuLWM'><q id='uuLWM'></q></dir></style></legend>

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

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