Hello,
It seems this topic has been idle for a while, but I figure it is information other people could use so I will reply to it anyway.
There are a couple of diffrent ways of handling ticks or turns in an online game. The first is by having a script that adds a number of turns to everyones turn_count
A useful mysql query would be
Update `users` SET `turns`=`turns`+5 WHERE `banned`=0
Which simply adds 5 turns to the users turn count if they are not banned. This could be set in a tick script that is automaticly run on the server as often as you want the turns to be updated. If you want to schedule this task on a linux machine you will need to use the task scheduler cron. You can set up the script as a shell script (By putting the path to PHP in the header, check out
This Tutorial for instructions on how to do this.) Another method would be simply to get cron to invoke lynx or some other command line browser (even wget) to call it.
The second method of handling turns only really applies if a person is limited to a specific ammount of turns per day (rather than a turn build up*time). How you would handle this is by updating a timestamp in the users profile when he logs in. If the timestamp is for a diffrent day than the previous one, set his turns back to whatever they should be.
I hope this is of some help to someone.