Re: [PHP] Parsing a tab delimited log file

2003-10-29 Thread Evan Nemerson
You're using a lot of memory here... Try using fgets for each line instead of one big file(). That way, you're only working with one line at a time and can forget it when you're done. On Wednesday 29 October 2003 01:12 pm, John wrote: > (I'm reposting this as it didn't seem to take the first ti

[PHP] Parsing a tab delimited log file

2003-10-29 Thread John
(I'm reposting this as it didn't seem to take the first time. If it's a dupe, I apologize.) Hey all. I'm attempting to count the number of unique message IDs from a Microsoft Exchange 2000 tracking log. While the code below works, it takes forever to run. Running through a 16mb log file takes like