久久久久久久av_日韩在线中文_看一级毛片视频_日本精品二区_成人深夜福利视频_武道仙尊动漫在线观看

    <bdo id='xU9P6'></bdo><ul id='xU9P6'></ul>

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

  1. <i id='xU9P6'><tr id='xU9P6'><dt id='xU9P6'><q id='xU9P6'><span id='xU9P6'><b id='xU9P6'><form id='xU9P6'><ins id='xU9P6'></ins><ul id='xU9P6'></ul><sub id='xU9P6'></sub></form><legend id='xU9P6'></legend><bdo id='xU9P6'><pre id='xU9P6'><center id='xU9P6'></center></pre></bdo></b><th id='xU9P6'></th></span></q></dt></tr></i><div class="qwawimqqmiuu" id='xU9P6'><tfoot id='xU9P6'></tfoot><dl id='xU9P6'><fieldset id='xU9P6'></fieldset></dl></div>
    <legend id='xU9P6'><style id='xU9P6'><dir id='xU9P6'><q id='xU9P6'></q></dir></style></legend>
  2. <tfoot id='xU9P6'></tfoot>

    1. 使用 Zend Framework 創(chuàng)建 cronjob

      Create cronjob with Zend Framework(使用 Zend Framework 創(chuàng)建 cronjob)
        • <bdo id='8RpsM'></bdo><ul id='8RpsM'></ul>

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

              1. <legend id='8RpsM'><style id='8RpsM'><dir id='8RpsM'><q id='8RpsM'></q></dir></style></legend>
              2. <small id='8RpsM'></small><noframes id='8RpsM'>

                本文介紹了使用 Zend Framework 創(chuàng)建 cronjob的處理方法,對(duì)大家解決問(wèn)題具有一定的參考價(jià)值,需要的朋友們下面隨著小編來(lái)一起學(xué)習(xí)吧!

                問(wèn)題描述

                我正在嘗試編寫(xiě)一個(gè) cronjob 控制器,因此我可以調(diào)用一個(gè)網(wǎng)站并執(zhí)行所有模塊 cronjob.php.現(xiàn)在我的問(wèn)題是我該怎么做?

                I am trying to write a cronjob controller, so I can call one website and have all modules cronjob.php executed. Now my problem is how do I do that?

                curl 是一種選擇,所以我也可以計(jì)算錯(cuò)誤和成功嗎?

                Would curl be an option, so I also can count the errors and successes?

                [更新]

                我想我解釋得還不夠多.

                I guess I have not explained it enough.

                我想要做的是有一個(gè)我可以從 http://server/cronjob 調(diào)用的文件,然后讓它執(zhí)行每一個(gè)/application/modules/*/controller/CronjobController.php 或者有另一種方式來(lái)做,所以所有的 cronjobs 不是在一個(gè)地方,而是在模塊所在的同一個(gè)地方.這會(huì)給我?guī)?lái)好處,如果模塊不存在,它不會(huì)嘗試運(yùn)行其 cronjob.

                What I want to do is have one file which I can call like from http://server/cronjob and then make it execute every /application/modules/*/controller/CronjobController.php or have another way of doing it so all the cronjobs aren't at one place but at the same place the module is located. This would offer me the advantage, that if a module does not exist it does not try to run its cronjob.

                現(xiàn)在我的問(wèn)題是你將如何執(zhí)行所有模塊 CronjobController 或者你是否會(huì)以完全不同的方式執(zhí)行它以便它仍然保持模塊化?

                Now my question is how would you execute all the modules CronjobController or would you do it a completly different way so it still stays modular?

                我希望能夠給出有多少cronjobs成功運(yùn)行,有多少?zèng)]有

                And I want to be able to giveout how many cronjobs ran successfully and how many didn't

                推薦答案

                經(jīng)過(guò)一些研究和大量的拖延,我得出一個(gè)簡(jiǎn)單的結(jié)論,即 ZF 化的 cron 腳本應(yīng)該包含您的 Zend 框架應(yīng)用程序的所有功能 - 沒(méi)有所有視圖的東西.我通過(guò)在我的應(yīng)用程序目錄中創(chuàng)建一個(gè)新的 cronjobfoo.php 文件來(lái)實(shí)現(xiàn)這一點(diǎn).然后我從以下方面取了最低限度:-我的前端控制器(index.php)-我的bootstrap.php

                After some research and a lot procrastination I came to the simple conclusion that a ZF-ized cron script should contain all the functionality of you zend framework app - without all the view stuff. I accomplished this by creating a new cronjobfoo.php file in my application directory. Then I took the bare minimum from: -my front controller (index.php) -my bootstrap.php

                我取出了所有的視圖內(nèi)容,專注于保持環(huán)境設(shè)置、數(shù)據(jù)庫(kù)設(shè)置、自動(dòng)加載器和 &注冊(cè)表設(shè)置.我不得不花一點(diǎn)時(shí)間來(lái)更正文檔根變量并刪除一些從引導(dǎo)程序復(fù)制的 OO 功能.

                I took out all the view stuff and focused on keeping the environment setup, db setup, autoloader, & registry setup. I had to take a little time to correct the document root variable and remove some of the OO functionality copied from my bootstrap.

                在那之后,我只是編碼了..在我的情況下,它正在編譯和通過(guò)電子郵件發(fā)送夜間報(bào)告.使用 Zend_Mail 很棒.當(dāng)我確信我的腳本按照我想要的方式工作時(shí),我只是將它添加到我的 crontab 中.

                After that I just coded away.. in my case it was compiling and emailing out nightly reports. It was great to use Zend_Mail. When I was confident that my script was working the way I wanted, I just added it my crontab.

                祝你好運(yùn)!

                這篇關(guān)于使用 Zend Framework 創(chuàng)建 cronjob的文章就介紹到這了,希望我們推薦的答案對(duì)大家有所幫助,也希望大家多多支持html5模板網(wǎng)!

                【網(wǎng)站聲明】本站部分內(nèi)容來(lái)源于互聯(lián)網(wǎng),旨在幫助大家更快的解決問(wèn)題,如果有圖片或者內(nèi)容侵犯了您的權(quán)益,請(qǐng)聯(lián)系我們刪除處理,感謝您的支持!

                相關(guān)文檔推薦

                Deadlock exception code for PHP, MySQL PDOException?(PHP、MySQL PDOException 的死鎖異常代碼?)
                PHP PDO MySQL scrollable cursor doesn#39;t work(PHP PDO MySQL 可滾動(dòng)游標(biāo)不起作用)
                PHP PDO ODBC connection(PHP PDO ODBC 連接)
                Using PDO::FETCH_CLASS with Magic Methods(使用 PDO::FETCH_CLASS 和魔術(shù)方法)
                php pdo get only one value from mysql; value that equals to variable(php pdo 只從 mysql 獲取一個(gè)值;等于變量的值)
                MSSQL PDO could not find driver(MSSQL PDO 找不到驅(qū)動(dòng)程序)

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

                  <tbody id='pNUgp'></tbody>
                  <bdo id='pNUgp'></bdo><ul id='pNUgp'></ul>
                • <legend id='pNUgp'><style id='pNUgp'><dir id='pNUgp'><q id='pNUgp'></q></dir></style></legend>
                  • <i id='pNUgp'><tr id='pNUgp'><dt id='pNUgp'><q id='pNUgp'><span id='pNUgp'><b id='pNUgp'><form id='pNUgp'><ins id='pNUgp'></ins><ul id='pNUgp'></ul><sub id='pNUgp'></sub></form><legend id='pNUgp'></legend><bdo id='pNUgp'><pre id='pNUgp'><center id='pNUgp'></center></pre></bdo></b><th id='pNUgp'></th></span></q></dt></tr></i><div class="qwawimqqmiuu" id='pNUgp'><tfoot id='pNUgp'></tfoot><dl id='pNUgp'><fieldset id='pNUgp'></fieldset></dl></div>
                      • <tfoot id='pNUgp'></tfoot>

                        1. 主站蜘蛛池模板: 欧美xxxx网站 | 亚洲国产精品久久久久久 | 一区二区三区欧美在线 | 日韩久久成人 | 国产成人免费视频网站高清观看视频 | 亚洲一二三区在线观看 | 成人精品一区亚洲午夜久久久 | 在线视频 亚洲 | 亚洲美女一区 | 精品99爱视频在线观看 | 国产69精品久久99不卡免费版 | 亚洲精品久久久久久宅男 | h视频免费在线观看 | 欧美激情一区二区三区 | 国产精品久久久久久 | 国产资源网 | 欧美一区精品 | 欧美中文字幕一区二区 | 欧美午夜影院 | 亚洲欧美一区二区三区国产精品 | 麻豆精品久久久 | 国产精品影视在线观看 | 国产人免费人成免费视频 | 狠狠做深爱婷婷综合一区 | 中文字幕一区二区三区精彩视频 | 国产午夜精品福利 | 欧美一级欧美三级在线观看 | 99精品久久久国产一区二区三 | 日本黄色免费片 | www狠狠干 | cao在线| 免费观看av网站 | 亚洲精品在线视频 | 欧美日日| www4虎| 日日操日日干 | 国户精品久久久久久久久久久不卡 | 91在线第一页| 羞羞视频在线观看 | 成人免费视频网站在线看 | 国产精品一区二区三区在线 |