Process large textfiles with PHP
Process large textfiles with PHP
I have a few millions of lines of text files. I would like to collect a word per line. First of all, to think of an array, but will allocate so much memory and it's just not a practical solution because of it. Why do I find an interesting array of reasons, it is very easy to compare the array with another array, and at a later stage, then, exists only in one file. I think I can read all the words in the database, and from there to find. Any other solution? Thanks in advance!
|