[PHP] Searching a test file...

2003-07-15 Thread Lloyd Bayley
Hi people, back again... Got some help this today (tnx Curt) from the list but for another chunk of the code I'm doing... Now, I can't seem to get the following code to work... Have included some sample lines from the datafile (acc.txt) No matter what I do, it always returns not here even if

Re: [PHP] Searching a test file...

2003-07-15 Thread Mike Migurski
No matter what I do, it always returns not here even if there is a matchvery frustrating! Any ideas? -snip- Looks like you are attempting to match 'user1' to user1 26:48:59 6 logins 4:28:09 hrs/login\n, which will come up false. You'll need to either do some postprocessing on the file, to

Re: [PHP] Searching a test file...

2003-07-15 Thread Burhan Khalid
On Tuesday, July 15, 2003, 9:08:25 AM, Lloyd wrote: [ snip ] LB No matter what I do, it always returns not here even if there is a LB matchvery frustrating! LB Any ideas? Echoing what Mike said (about the preprocessing), here is some code to help you out : $search = user1; if (!($names =