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

Completado Publicado Jan 5, 2010 Pagado a la entrega
Completado Pagado a la entrega

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"]?>

Ingeniería MySQL PHP Gestión de proyectos Arquitectura de software Verificación de software Web Hosting Gestión de páginas web Verificación de páginas web

Nº del proyecto: #3065193

Sobre el proyecto

2 propuestas Proyecto remoto Activo Jan 7, 2010

Adjudicado a:

platiumnetwork

See private message.

$25.5 USD en 10 días
(9 comentarios)
2.8

2 freelancers están ofertando un promedio de $55 por este trabajo

kanhashriinc

See private message.

$85 USD en 10 días
(9 comentarios)
2.9