Phpfflush function. Phpfflush function fflush (4.0.1, PHP5 in PHP4) fflush-refresh the output to a file description Boolean fflush (resource $ processing) this function forces the php fflush function to write all buffer outputs
Fflush
("= 4.0.1, PHP 5" in PHP 4)
Fflush-refresh the output to a file
Description
Boolean fflush (resource $ processing)
This function is used to write the file handle pointed to by all buffered output resources.
Parameters
Handle
The file pointer must be valid and must point to a file that successfully opens fopen () or fsockopen () (and has not closed fclose ()).
Return value
Returns TRUE or FALSE.
Instance
For example, to write a file No. 1, for example, 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.htmlwww.bkjia.comtruehttp://www.bkjia.com/PHPjc/445480.htmlTechArticlephp fflush function fflush (PHP 4 = 4.0.1, PHP 5) fflush-refresh output to a file description Boolean fflush (resource $ handle) this feature forces writing all buffer output resources...