I am a metal monkey!
Administrator Community Supporter?
Jedai Sword Master
Gender:
Posts: 5799
46391 credits Members referred : 3
« Reply #6 on: Feb 16, 2006, 09:57:24 am »
fgets($handle, 4096);
mean that will read one line from the $handle with maximum limit 4096 bytes/line.
It is much faster, because it will create the array while parsing, instead of explode("\n", file_get_contents($file)); which will first load the file in memory and then will parse it to create the array.