Re: Countdown in PHP

From: Date: Tue, 24 Apr 2001 16:34:54 +0000
Subject: Re: Countdown in PHP
References: 1 2  Groups: php.general 
Request: Send a blank email to php-general+get-50120@lists.php.net to get a copy of this message
Its easy enough to display a time and have it count down each time someone views the page(get a timestamp and hardcode it in, then grab a current timestamp when someone hits the page and compare the two), but if you want a constant countdown updating constantly then it has to be client side. The only way around this would be to throw in a meta refresh tag set to refresh every second. This is not a viable option obviously, and technically it would still be a client side alteration. You said the countdown could be done with Javascript which is a client side technology, and is what should be used to do this. -- phill "george" <chiefmonkey@wisemonkeydesign.co.uk> wrote in message news:chiefmonkey-AF52D5.12005424042001@va.php.net... > > I mean server side. > What i thought icould do was use a cookie time() > but how do I extract the value and display it as day hour minute second > format > and also how do I change the value of the cookie to reflect the > different times someone will log on. > For instance by setting the cookie someone will have access for 3 hours > but someone who enters the site an hour later will only have access for > 2. > Any help would be great Ihave nearly finished this project and this is > all that is hoiding me up, I am starting to pull my hair out and the > client is determined that it be done server side. > > > -- > george > chiefmonkey@<my_pants>wisemonkeydesign.co.uk > remove my_pants to reply.... > 44 (0)1698 712537 > 44 (0)1698 712657 > > -- > PHP General Mailing List (http://www.php.net/) > To unsubscribe, e-mail: php-general-unsubscribe@lists.php.net > For additional commands, e-mail: php-general-help@lists.php.net > To contact the list administrators, e-mail: php-list-admin@lists.php.net >

« previous php.general (#50120) next »