You are here: Re: mkdate() checkdate() etc « PHP Programming Language « IT news, forums, messages
Re: mkdate() checkdate() etc

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]


Удаленная работа для программистов  •  Как заработать на Google AdSense  •  England, UK  •  статьи на английском  •  PHP MySQL CMS Apache Oscommerce  •  Online Business Knowledge Base  •  DVD MP3 AVI MP4 players codecs conversion help
Home  •  Search  •  Site Map  •  Set as Homepage  •  Add to Favourites

Copyright © 2005-2006 Powered by Custom PHP Programming

Сайт изготовлен в Студии Валентина Петручека
изготовление и поддержка веб-сайтов, разработка программного обеспечения, поисковая оптимизация