Re: timer in PHP
| From: | Chris Lee | Date: | Wed, 11 Apr 2001 12:56:25 +0000 |
| Subject: | Re: timer in PHP | ||
| References: | 1 | Groups: | php.general |
| Request: | Send a blank email to php-general+get-48168@lists.php.net to get a copy of this message | ||
there is no sure way, but using cookies/sessions you can make something that will *work* . assign
the user a session_id, every time the user makes an entry add a value to the db,
session_id = $SessionID
next_time = time() + 120
every time you make an entry, check to make sure that next_time < time() if it is then proceed,
else update next_time = time + 300;
If you need a code example email me, I'll whip something up :)
--
Chris Lee
lee@mediawaveonline.com
""george"" <geo.mclachlan@btinternet.com> wrote in message news:9b1p05$t6c$1@toye.p.sourceforge.net...
I need to have a time running and after a certain time it will not allow
you to submit anything else, on top of that if someone makes an entry with
less than 2 minutes to go the time must be extended by 5 minutes.
I really am at a loss how to do this.
Can it be done.
TIA
George
--
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