[PHP] fgets() problem

2003-06-13 Thread Armand Turpel
It seems that some php versions have difficulties with the fgets() function. On php 4.3.2 it works fine, but other versions report warnings. fgets($f); Warning: Wrong parameter count for fgets() in /var/www/Xprotector/include/base.inc.php on line 70 If I change fgets to fgets($f, 4096); it

Re: [PHP] fgets() problem

2003-06-13 Thread Marek Kilimajer
From the manual: Note: The length parameter became optional in PHP 4.2.0, if omitted, it would assume 1024 as the line length. As of PHP 4.3, omitting length will keep reading from the stream until it reaches the end of the line. If the majority of the lines in the file are all larger than