MyBB Community Forums

Full Version: PHP Help: Fastest Way to Solve This Problem
You're currently viewing a stripped down version of our content. View the full version with proper formatting.
Hey guys,

I am trying to figure out a problem:

Find the number of unique numbers in this text file:
http://www.columbia.edu/~ob2108/c/test.txt

I made a script for it, http://le0n.org/textcounter/

The problem is that the text file is really big and it exhausts the memory, and my script doesn't work to do it in collective chunks.

Can anybody think of a better way?

Umm, run it locally where memory shouldn't be an issue?
(2011-07-15, 04:03 PM)Alex Smith Wrote: [ -> ]Umm, run it locally where memory shouldn't be an issue?

Didn't think of that :p Let's see if it works.



I think I got it working.