PHP fflush functions
Fflush
(php 4 "= 4.0.1, PHP 5)
Fflush-Flush output to a file
Describe
Boolean fflush (resource $ processing)
This feature forces the file handle that is pointed to by the resource to which all buffered outputs are written.
Parameters
Handle
The file pointer must be valid and must point to a file that successfully opened fopen () or Fsockopen () (and has not yet closed fclose ()).
return value
Returns TRUE or FALSE for successful failure.
Instance
For example, the writing of a 1th file such as using Fflush (),
$filename = ' bar.txt ';
$file = fopen ($filename, ' r+ ');
Rewind ($file);
Fwrite ($file, ' Foo ');
Fflush ($file);
Ftruncate ($file, Ftell ($file));
Fclose ($file);
?>
http://www.bkjia.com/PHPjc/445480.html www.bkjia.com true http://www.bkjia.com/PHPjc/445480.html techarticle php fflush function fflush (php 4 = 4.0.1, PHP 5) fflush-Flush output to a file description Boolean Fflush (resource $ processing) This feature forces write all buffered output to the capital ...