Đang Thực Hiện

8052 Data log parsing

I run a Gaming server that produces log files like the one included as an attachment. But here is a sample line: &lt and &rt are the less than and greater than signs, which are not allowed here. L 07/26/2006 - 11:26:10: "p$ycokill3r&lt1960&rt&ltSTEAM_0:1:7267183&rt&ltAxis&rt" killed "Nick Drake&lt1964&rt&ltSTEAM_0:1:2384492&rt&ltAllies&rt" with "kar" First let me break this line into the four essential parts (A-D). A. p$ycokill3r STEAM_0:1:7267183 is the person who killed another player. Note that the name and STEAM_ id change for each player. B. Nick Drake STEAM_0:1:2384492 is the player who was shot. Again name and steam id change. C. "kar" is the weapon used to kill with. Again, this can be one of several weapons. D. Axis and Allies are the two teams. What I want to have happen is the following: 1. The file needs to be scanned to find lines that have the word "killed" in them. This is important as not every line is "kill" line. 2. Using preg_match (preg_match_all) I want to get each of the four parts separated. Parts A and B I want split into player name and steam id. 3. This information will eventually be going into a mysql database (yet to be built). Other information: This must be done using PHP. The version of php that I run is the latest version 5.14. I would do this myself, but I am in the process of launching a large website. If you do not already have over 50 good ratings, then I would ask you to show that you are able to parse two of the "kill" lines as I ask. You can show results using the print_r() function. You can see phpinfo output at [url removed, login to view] If you have any questions do not hesitate to ask. Greg

Kỹ năng: Bất kì công việc gì, MySQL, PHP

Xem thêm: log into, nick p, mysql data files, log me in, weapon, Steam, steam server, rt, log files, greg, data p, data log, server log, steam questions, word find function, killed, parse lines file, php data parse, log com, parse data file, parse data, let log, parse log, php split file, php parse log files

Về Bên Thuê:
( 2 nhận xét ) Zug,

Mã Dự Án: #1758920

Đã trao cho:


It's very easy for me. Please, check PMB.

$40 USD trong 0 ngày
(0 Đánh Giá)