Anonymous Monk has asked for the wisdom of the Perl Monks concerning the following question:
I am scripting a web game that works using turns, where 1 turn=5 minutes. However i do not know the best way to go about updating their stats every 5 minutes. Would I be better off with cronjobs or running a script server side to update?
Maybe something like this.
for ($cou=0;$cou<100;$cou+=0) { ##update code goes here; sleep 300; }
I don't know if a webserver would allow this though(I know I would't).
|
|---|
| Replies are listed 'Best First'. | |
|---|---|
|
Re: Running a script periodically to update player statistics on a web game.
by kcott (Archbishop) on Nov 02, 2010 at 01:24 UTC | |
by dsheroh (Monsignor) on Nov 02, 2010 at 09:53 UTC | |
by kcott (Archbishop) on Nov 02, 2010 at 10:06 UTC | |
by Anonymous Monk on Nov 02, 2010 at 18:00 UTC | |
|
Re: Running a script periodically to update player statistics on a web game.
by dsheroh (Monsignor) on Nov 02, 2010 at 09:48 UTC | |
|
Re: Running a script periodically to update player statistics on a web game.
by locked_user sundialsvc4 (Abbot) on Nov 02, 2010 at 12:56 UTC |