Got problem, want to make PHP script which show how many there is people online on my server, but dont know where is this save?
Searched, but did not find, maybe its to easy ;P.
Got problem, want to make PHP script which show how many there is people online on my server, but dont know where is this save?
Searched, but did not find, maybe its to easy ;P.
write "/online" ingame ...
KOSP has that function (beta?)
well yes, with KOSP beta you can show it, you just need the php script
(like Bushido did in his WebPage Release http://forum.ragezone.com/f315/web-s...hanger-338157/ . With this page you can see who is online and how many ) :sweatdrop
Omg sry for your bad english. But he didn't say that he want to use it for his website.
PHP-script can be used anywhere ...
Well there is the original way, which was to use the statistics table, so as to see how many of each type of class, player there was on.
However with the beta version of the kosp/kocp, it adds log files.
That can be read via php, to update the database.
I have used it myself to keep, me up to date when people last logged in.
Hmm, ok thanks for advices, but do I need to install KOSP?
KOSP must read this values from somewhere too.
Is this saved somewhere in DB?
@crosenblum
I see two stat tables.
First in kal_auth its - AuthStatistics
Second in kal_db its - Statistics
After I've logged in my server I did not see any changes. These stats tables were still empty.
@divinedignity
Thanks for trying ;).
My second problem its with server status.
I use PHP function fsockopen, but I must set delay for this function. When I set 2 seconds my page is generated two seconds longer what is not to accept for me.
Now I've set 0.1, its 10ms, but its still slowing page loading time.
I will see how its written on KalSiteX scripts, I dont want to use his scripts, beacuse I am writing all on myself.