How to use set file buffer in PHP

In this article I am going to explain about set_file_buffer function in PHP.
  • 1585

PHP set_file_buffer() Function

The filesystem set_file_buffer function sets the buffer size of an open file.

Syntax of set_file_buffer function

set_file_buffer(file, buffer)

Parameters in set_file_buffer function

It have two parameter:

Parameter Description
file It specifies the open file.
buffer It specifies the buffer size in bytes.

Example of filesystem set_file_buffer function




$handle = fopen("C:\wamp\www\Dinesh\PhpIntro.txt","w");



set_file_buffer($handle, 0);

fwrite($handle, "MCN Solution!");






You may also want to read these related articles :

Ask Your Question 

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

Programming Answers here


More Articles

© 2020 DotNetHeaven. All rights reserved.