1. This site uses cookies. By continuing to use this site, you are agreeing to our use of cookies. Learn More.

Development PHP Log File Reading

Discussion in 'Software' started by Spitfire, 28 Nov 2007.

  1. Spitfire

    Spitfire What's a Dremel?

    Joined:
    6 Nov 2004
    Posts:
    86
    Likes Received:
    0
    Hi,

    I am trying to write a PHP script that can read COD 4 script files. So far, I only got it to read the first line, which I do not want, since I only want the relevant info in the file itself (Players name etc.). I also managed to get it to read the whole file. Again, something I do not want.

    I am having trouble getting to go through the file, and skipping the different characters that are written, such as dashes and the like. Also, this info is going to be added to a database afterwards.

    Suggestions?
     
  2. Ramble

    Ramble Ginger Nut

    Joined:
    5 Dec 2005
    Posts:
    5,596
    Likes Received:
    43
    Haven't coded for ages but changing an option in fread usually does the trick I think.
    There are a number of functions that operate on a variable that can strip out characters.
     
  3. DougEdey

    DougEdey I pwn all your storage

    Joined:
    5 Jul 2005
    Posts:
    13,933
    Likes Received:
    33

Share This Page