HTML tutorial
CSS3 tutorial
Bootstrap tutorial
JavaScript tutorial
JQuery tutorial
AngularJS tutorial
React tutorial
NodeJS tutorial
PHP tutorial
Python tutorial
Python3 tutorial
Django tutorial
Linux tutorial
Docker tutorial
Ruby tutorial
Java tutorial
C tutorial
C ++ tutorial
Perl tutorial
JSP tutorial
Lua tutorial
Scala tutorial
Go tutorial
ASP.NET tutorial
C # tutorial
Create an unbuffered stream
The set_file_buffer() function specifies the number of bytes to buffer on the given file.
Output using fwrite() is normally buffered at 8K. So, if two processes writes to the same file, each will write up to 8K before pausing, and allow the other to write. If buffer is 0, write operations are unbuffered (meaning that the first write process will be completed before allowing other processes to write).
Parameter | Description |
---|---|
file | Required. Specifies a file pointer |
buffer | Required. Specifies the number of bytes to buffer |
Return Value: | 0 on success, another value if request failed |
---|---|
PHP Version: | 4.3+ |
❮ PHP Filesystem Reference