先看看fread的manual,如下: http://php.net/manual/en/function.fread.php fread() reads up to length bytes from the file pointer referenced by handle. Reading stops as soon as one of the following conditions is met: length bytes have been read EOF (end of file…