たとえば、次のようなテーブルを取得しました。
Activities:
id
start_time
status
2013-01-01そして、アクティビティstatusを挿入したいと思い0ます。2013-01-01status1
プログラムがデータベースに送信されたときに、アクションjavaを実行するプログラムを単純なスケジューラに記述できます。また、長いポーリングプログラムを使用して確認することもできます。また、データベース トリガーを使用することもできます。また、ユーザーが呼び出したときに実行する必要があるレコードがあるかどうかも確認できます.....schedulephpphp
しかし、とにかくありますか
1. to use php ONLY, no database trigger is prefered.
2. the schedule can content can be editable easier.
3. no need the client to driven the change status execution, if no body is calling the requested .php, status can also changed in database, it changed based on time, not by event
ポイント2の例として、ステータスを実行後に保存するテーブルがある場合があります。たとえば、ステータスを3ではなく に変更できます1。表は次のようなものです。
Activity_executes: id activities_id change_status_code