Display countdown timer to show when next scheduled cron job will execute

完了済み 投稿 Jan 5, 2010 着払い
完了済み 着払い

Need addon for FBML Facebook App <[url removed, login to view]>

The application has 4 stats that are executed using cron jobs. I would like a countdown timer placed under each stat to show time left for next cron job to execute.

## Deliverables

Again, I would like a displayed countdown clock shown underneath each stat that changes as a result of a cron job being executed.

The timer should be in sync with when the job is executed.

The facebook app is not using iframes, it is fbml.

One of my stats is Energy.

The cron job is set to go off every 5 mins. The execution file is:

<?php

//Database

include_once("[url removed, login to view]");

//Application Library

include_once("[url removed, login to view]");

CronJobForEnergy();

?>

The command in [url removed, login to view] is:

//Cron Job for Energy

function CronJobForEnergy()

{

? $appSetting = ApplicationSetting();

? $time = time();

? db_execute("Update user set energy=energy+1, last_charge=".$time." where energy<energy_max and (".$time."-last_charge)>=".$appSetting["cron_energy_stemina"]);

}

The display of the current energy is:

<?= $user["energy"]?>

エンジニアリング MySQL PHP プロジェクト管理 ソフトウェアアーキテクチャ ソフトウェアテスト ウェブホスティング ウェブサイト管理 ウェブサイトのテスト

プロジェクトID: #3065193

プロジェクトについて

2個の提案 リモートプロジェクト アクティブ Jan 7, 2010

アワード:

platiumnetwork

See private message.

$25.5 USD 10日以内
(9レビュー)
2.8

2人のフリーランサーが、平均$55 で、この仕事に入札しています。

kanhashriinc

See private message.

$85 USD 10日以内
(9件のレビュー)
2.9