How to use set file buffer in PHP
In this article I am going to explain about set_file_buffer function in PHP.
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
<html>
<body>
<?php
$handle = fopen("C:\wamp\www\Dinesh\PhpIntro.txt","w");
if($handle)
{
set_file_buffer($handle, 0);
fwrite($handle, "MCN Solution!");
fclose($handle);
}
?>
</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