|
php.net | support | documentation | report a bug | advanced search | search howto | statistics | random bug | login |
[2000-07-17 15:14 UTC] jandeluyck at gmx dot net
when calling the following: $str_of_file = "blah.txt"; // file is 500bytes $file = fopen($str_of_file); fgets($file,filesize($str_of_file)); // i only get the 499 first characters of the file! So there seems to be a problem. Tested on Win32 (WinNT 4 / 2000) platforms as on FreeBSD 3.0-RELEASE. the Win32 binary was the one supplied on the PHP site, running on an Apache 1.3.12. PatchesPull RequestsHistoryAllCommentsChangesGit/SVN commits
|
|||||||||||||||||||||||||||
Copyright © 2001-2026 The PHP GroupAll rights reserved. |
Last updated: Thu Oct 08 22:00:01 2026 UTC |
RTMF, please: string fgets (int fp, int length) Returns a string of up to length - 1 bytes read from the file pointed to by fp. Reading ends when length - 1 bytes have been read