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 8KB, it is more resource efficient for your script to specify the maximum line length.


Armand Turpel wrote:
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 woks.


Any idea why?







--
PHP General Mailing List (http://www.php.net/)
To unsubscribe, visit: http://www.php.net/unsub.php



Reply via email to