久久久久久久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. 主站蜘蛛池模板: 四虎影院免费在线播放 | 99久久国产 | 99在线免费观看 | 精品在线播放 | 免费在线播放黄色 | 四虎影视1304t | av国产精品| 99精品久久 | 午夜视频精品 | 亚洲一区二区三区在线视频 | 99re| 成人久久18免费网站麻豆 | 91麻豆精品国产91久久久久久久久 | 香蕉久久a毛片 | 日韩精品色网 | 欧美精品一区二区在线观看 | 日本成人二区 | 九九热在线观看视频 | a天堂在线| 亚洲天堂999 | 亚洲欧美在线视频 | 亚洲精品二三区 | 国产成人精品a视频一区www | 18av在线播放 | 欧美一区二区在线免费观看 | 久久精品一区二区 | 午夜免费在线 | 亚洲一区二区在线视频 | 免费电影av| 91精品国产乱码久久久久久久久 | 99这里只有精品 | 午夜精品久久久久久 | 久在线视频 | 亚洲一区二区三区四区五区中文 | 欧洲一区在线观看 | 黄色一级大片在线免费看产 | 亚洲欧美综合精品久久成人 | 涩涩视频在线观看免费 | 国产精品日韩一区 | 久久手机在线视频 | 免费观看一级毛片 |