How to use Filesystem fflush in PHP

In this article I am going to explain about fflush function in PHP.
  • 1035

PHP fflush() function

The filesystem fflush function is used to write of all buffered output to the resource pointed to by the file handle.

Syntax of fflush function

fflush(filename)

Parameters in fflush function

It has only one parameter:

Parameter Description
filename It specifies the open file to check.

Example of filesystem fflush function

<html>

<body>

 

<?php

$file = fopen("C:\wamp\www\Dinesh\Mcn.txt","r+");

 

fflush($file);

?>

 

</body>

</html>


You may also want to read these related articles :
here

Ask Your Question 

Got a programming related question? You may want to post your question here

Programming Answers here

Categories

More Articles

© 2020 DotNetHeaven. All rights reserved.