Server webstats
#1

Hello I want to add a webpage with everyones stats from my server.
I want to include. Anyway I can do it, any tutorials?

Kills
Deaths
Days alive
Day registered

etc.

Thanks.
~John.
Reply
#2

Use MySQL, more I can't tell you though
Reply
#3

There are tutorials but they didn't help me because most of them are wrong or are created by people with little knowledge of php and mysql. So i had to work on mysql system and php myself.

What you need?
Mysql database
Mysql saving/loading system on your server
And php code to load the stats on your website upon user login.

or just search "webstats"
Reply
#4

You don't really need a mysql based system. but is more secure. than use direct acess to scriptfiles.
Reply
#5

You can easily just load it from the user file with php.
Reply
#6

Quote:
Originally Posted by cj101
Посмотреть сообщение
You can easily just load it from the user file with php.
Easily, and you'll get to meet my pet:



MySQL is the most efficient solution for writing/loading data to/from alternate sources, if you choose files then you'd have to ensure that your server host allowed proper FTP connections (relatively slow) or allowed access to the scriptfiles directory, then you'd need to load a file that retains a lot of unnecessary data to obtain the right information (slow, again) then echo it out.
Reply
#7

Anyone have any tutorials please?
Reply
#8

Quote:
Originally Posted by Johndon
Посмотреть сообщение
Anyone have any tutorials please?
People have stated what you need to do. Look through the tutorial section and change your script to MySQL and then use ****** to learn how to use PHP. Then is also an example of a user control panel which can get stats in the gamemode/filterscript section.
Reply


Forum Jump:


Users browsing this thread: 2 Guest(s)