Re: [PHP] Very interesting and challenging question

2001-11-28 Thread Chris Hobbs
A fellow wannabe Winston Cup driver :) I'm thinking about setting a switch on $mode, which will change what it does based on the value of $mode. Something like this: $mode = 1; // 1 for stripping text, 2 for adding driver results, 3 for adding race results $file = file('/path/to/filename'); f

RE: [PHP] Very interesting and challenging question

2001-11-28 Thread Chris Bailey
TED]] Sent: Wednesday, November 28, 2001 9:01 AM To: PHP General List Subject: [PHP] Very interesting and challenging question I need to take a file, similar to this and strip it of everything but this, and write it to a database. Are there any thoughts on how to get the information out, all the

Re: [PHP] Very interesting and challenging question

2001-11-28 Thread Conor McTernan
I had something like this to do a couple of months back, unfortunately, my code was deleted by someone "smart" in my office. But i can pretty much remember the algorithim behind it. What I done was read in my file into a buffer, then use the explode function, i think, or something like it, bas

[PHP] Very interesting and challenging question

2001-11-28 Thread Dan McCullough
I need to take a file, similar to this and strip it of everything but this, and write it to a database. Are there any thoughts on how to get the information out, all the files are consistent. Race Final Watkins Glen International 2.450 miles31 laps --