vb.org Archive

vb.org Archive (https://vborg.vbsupport.ru/index.php)
-   vB3 Programming Discussions (https://vborg.vbsupport.ru/forumdisplay.php?f=15)
-   -   (PHP) Chat parse to gather info (https://vborg.vbsupport.ru/showthread.php?t=165273)

caedas 12-16-2007 02:48 AM

(PHP) Chat parse to gather info
 
Hey guys.

I am wanting to take a file (which a program makes and logs all of the chat in the game I play), sift through all of that information for specific lines, and use parts of those lines (words/phrases) to create data.

Example: You defeat a monster! It dropped you an item! CharacterName obtains the item!

- The Red text would be one variable and would store to table 1.
- The Green text would be a seperate variable and would store to tables 2 & 3.
- The Blue text would both be variables and would store to table 3 & 4.

I know a decent amount of PHP (learning more and more every day) and feel sure it could be done...but I have no idea how to even go about doing it. If doing it in another language would be more efficient, then I would take the time to learn it as well.

Could someone please help? I would be grateful for some suggestions, tutorial links, etc., since I don't even know where to start :eek:.

Thanks!

--------------- Added [DATE]1197844538[/DATE] at [TIME]1197844538[/TIME] ---------------

Sorry to bump, anyone have any clue on this?


All times are GMT. The time now is 02:57 PM.

Powered by vBulletin® Version 3.8.12 by vBS
Copyright ©2000 - 2025, vBulletin Solutions Inc.

X vBulletin 3.8.12 by vBS Debug Information
  • Page Generation 0.00927 seconds
  • Memory Usage 1,707KB
  • Queries Executed 10 (?)
More Information
Template Usage:
  • (1)ad_footer_end
  • (1)ad_footer_start
  • (1)ad_header_end
  • (1)ad_header_logo
  • (1)ad_navbar_below
  • (1)footer
  • (1)gobutton
  • (1)header
  • (1)headinclude
  • (6)option
  • (1)post_thanks_navbar_search
  • (1)printthread
  • (1)printthreadbit
  • (1)spacer_close
  • (1)spacer_open 

Phrase Groups Available:
  • global
  • postbit
  • showthread
Included Files:
  • ./printthread.php
  • ./global.php
  • ./includes/init.php
  • ./includes/class_core.php
  • ./includes/config.php
  • ./includes/functions.php
  • ./includes/class_hook.php
  • ./includes/modsystem_functions.php
  • ./includes/class_bbcode_alt.php
  • ./includes/class_bbcode.php
  • ./includes/functions_bigthree.php 

Hooks Called:
  • init_startup
  • init_startup_session_setup_start
  • init_startup_session_setup_complete
  • cache_permissions
  • fetch_threadinfo_query
  • fetch_threadinfo
  • fetch_foruminfo
  • style_fetch
  • cache_templates
  • global_start
  • parse_templates
  • global_setup_complete
  • printthread_start
  • bbcode_fetch_tags
  • bbcode_create
  • bbcode_parse_start
  • bbcode_parse_complete_precache
  • bbcode_parse_complete
  • printthread_post
  • printthread_complete