Posted by Philip Ronan on 10/09/05 11:32
"Krustov" wrote:
> The first user to look at the poll after the end date/time will trigger
> its closer checking routine rather using a cron job .
>
> - how do I create the 1-28 days end date/time
$endTime = time() + $days * 24 * 3600; // $days = 1-28
> - how do I check it against the creation date time
if (time() > $endTime) die("This poll has ended.");
> If a 20 day poll is created on 25th Dec 2005 the end date/time will of
> course need to roll over into 2006 .
Indeed.
--
phil [dot] ronan @ virgin [dot] net
http://vzone.virgin.net/phil.ronan/
Navigation:
[Reply to this message]
|