Find centralized, trusted content and collaborate around the technologies you use most.
Teams
Q&A for work
Connect and share knowledge within a single location that is structured and easy to search.
サイト自体から独立した PHP-Cronscript で ZF2 モジュール (具体的には DB モデル) を使用する方法はありますか? 正確にはどのように見えるのですか?
これは、コンソール ディレクティブを使用して既に行っています。次のようなことができます。
php public/index.php cron diskspace_update
私は実際に多くの cron をこの方法で実行しており、これまでのところ非常にうまくいっています。また、DB とも対話します。