php file: http://www.hivclan.org/tests/ (index.php)
log file: http://www.hivclan.org/tests/halo.log...
User Profile
Collapse
-
-
Copying and pasting it isn't working for some reason, so here's a pic of the top piece of it:
...Leave a comment:
-
Ok, that worked. It output the entire log file.
Edit: the line breaks are messed up, though....Leave a comment:
-
-
-
-
Thanks. I'm getting this error, though:
Warning: preg_match() [function.preg-match]: Delimiter must not be alphanumeric or backslash in <url> on line 17
Warning: preg_match() [function.preg-match]: Delimiter must not be alphanumeric or backslash in <url> on line 19
It keeps repeating that over and over.Leave a comment:
-
-
The deliminators used are tabs. I *think* that's what you're wanting to know....Leave a comment:
-
Parsing a text file
Alright. The text file in question is an online game server's log file (log.log being the file, the game being Halo). It has information in it that I would like to be extracted and put in a table in a php file. It needs to be polled regularly (maybe every 30 minutes). Here is a piece of the log file:
...Code:2007-02-16 21:58:42 KILL "¬ÞØøþ¬" player 3 KILLED "MastaSpoofa" player 5 2007-02-16 21:58:43 CHAT
No activity results to display
Show More
Leave a comment: