I am a metal monkey!
Administrator Community Supporter?
Jedai Sword Master
Gender:
Posts: 8037
41179 credits Members referred : 3
« Reply #6 on: Feb 16, 2006, 10: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.