Hello,
first of all, congrats on the site and the community, it's a great deal of help

I was wondering, what is the most efficient way to deal with the auto-incrementing of resources in, like, strategy games? Or, similarly, health in some other rpg games?
For example, gold may be incremented by 1 unit every 2 seconds. It seems a bit silly to me, to have a script running that every 2 seconds increments the gold of ALL players in the database by 1 unit. Besides the fact that I can't think of a way to have a script constantly running (talking about PHP with MySQL on Unix), i think that it would be very memory-cpu consuming to do so. But I can't think of any other way to do it.
So, do you know any better way to achieve the goal?
Thanks in advance.