Actually, this is a valid question and isn't addressed in the manual;
Some systems use an internal buffer of a particular length that effectively
limits the maximum chunk that you can read in one call.
This is problematic, particularly for fgets where you are only interested
in lines.
There are a
Please use the php-general for questions like this.
- see http://www.php.net/fread
Regards
Alan
Terence Lee wrote:
>hello
>
>i've tried to read a line from a text file by fgets($fp,8192). it work
>fine. however, there is a line over 8192 char and i tried to increase
>the 2nd parameter (e.g. 8
hello
i've tried to read a line from a text file by fgets($fp,8192). it work
fine. however, there is a line over 8192 char and i tried to increase
the 2nd parameter (e.g. 8193, 16384, 88192) still only 8192 char are
read to my string variables.
is it a limit of fgets or length of a string? any