Z manuala o fgets:
Cytat
Note: The length parameter became optional in php 4.2.0. Until php 4.3.0, omitting it would assume 1024 as the line length. If the majority of the lines in the file are all larger than 8KB, it is more resource efficient for your script to specify the maximum line length.
Uzyj file_get_contents() -- wczyta ci caly plik od razu, bez zadnych problemow i ustawiania dlugosci pliku/linii.