Write all buffered output to an open file in PHP
Description
The following code shows how to write all buffered output to an open file.
Example
// w ww .j a va 2 s . c o m
<?php
$file = fopen("test.txt","r+");
// some code
fflush($file);
fclose($file);
?>