Need Direction on IP/user/ID database


  -----  
Author Message

Mal
Member

Mon Jan 30, 2006 12:06 am   Post subject: Need Direction on IP/user/ID database
We own several game servers and our servers record in game player connection data like IP, Player ID, name, and file check errors

I would like to tie this in with our forums IP search utility we got from you (or a new mod dont matter)

our main concern are the names, IDs and the IPs, the names change and the IPs change but the IDs usually do not

here is a bit of what our server records

Code:

38298: 8896.668: Ch(15):acc(67.167.234.143:2304,'UltimaRatioRegum',770663272,770663272)
38301: 8896.678: 15:16:06 Server: UltimaRatioRegum uses modified or missing data file - RES;@ECP
38477: 8910.493: 15:16:20 Player UltimaRatioRegum connected (id=1070999)
38478: 8910.603: 15:16:20 Server: UltimaRatioRegum uses modified or missing config file
38483: 8910.641: 15:16:20 Server: UltimaRatioRegum uses modified or missing data file - DynamicRange\inner.paa
38484: 8910.642: 15:16:20 Server: UltimaRatioRegum uses modified or missing data file - ECP_Effects\config.cpp
38489: 8911.053: 15:16:21 Server: UltimaRatioRegum uses modified or missing data file - scripts\onplayerkilled.sqs
38490: 8911.053: 15:16:21 Server: UltimaRatioRegum uses modified or missing data file - scripts\onplayerrespawnasseagull.sqs


now I'm pretty good and adding mods into our nuke and phpbb sites but to actually script the coding is another, I know phpmyadmin fairly well as well and do understand the basics of the souce code a little

I am planning on stripping the data above so it looks like this

Code:

ip:port,Name,Game ID
67.167.234.143:2304,UltimaRatioRegum,1070999

and inserting it into the data base on our web server, iether in the forums db access threw the admin section or page seperate from every thing else

having a search function like 67.167.*.* (like the one used in IP search) is also what is throwing me off

I dont want you guys to write the program for me just walk me threw it's design so I get a better idea of php creation

I suposed information that is identical would need to be filtered out, but that would require more coding and tying up the web server when I can just re-insert the data every few weeks
the core data is 50 megs, the main data with IPs, IDs, Names would be about 5 megs or less
 

Thoul
Administrator

Tue Jan 31, 2006 8:56 pm   Post subject: re: Need Direction on IP/user/ID database

Quote:

and inserting it into the data base on our web server, iether in the forums db access threw the admin section or page seperate from every thing else


To tie something like this in with IP Search, it would need to be in the forum's database. So that would probably be the best place to put it.

Quote:

having a search function like 67.167.*.* (like the one used in IP search) is also what is throwing me off


The best thing I can tell you here is to take a look at how IP Search is coded to handle it. The key is to use an SQL query that uses a "LIKE" function for searching data.
 

Page 1 of 1
Display posts from previous: