Online Statistics: methods and variants
-
Here we go.
Realtime stat - see attached file
Note: adapted for FLHook plugin version, has russian data so regen it by Ioncross Database Maker from DB and edit for your needs
P.S. All php questions to OutCast - joke ;))
-
The only familiar thing to me here is the flhook socket ‘framework’ ^^
On the subject:
1. Requesting info from the server every time on client’s demand - is a very easy way to DoS your server to death.
Either you have to have some limitations, or collect info from the server with scheduled/croned script. My system uses the latter.2. While there maybe a point in this direct page generation, i say it’s better to have a script that fills database, and a frontend script that’ll make all the nice tables.
Also DB is always very useful thing for a lot of tasks. -
Thx Alexander!
1. Yep. Another proof of Plugin Hook stability.
We have link from main page, so stat generates only by clicking on it.
And count of players on main page is generated by lgsl (http://www.greycube.com)2. When our server will grow at least to the size of Hamburg City, we will take your note!
-
we do #2 currently
-
I have scheduled stat too, without pages ;(