stream_set_write_buffer()
stream_set_write_buffer - Sets file buffering on the given stream
Syntax
int stream_set_write_buffer (
resource $stream,
int $buffer)
Arguments
- stream - The file pointer.
- buffer - The number of bytes to buffer. If buffer is 0 then write operations are unbuffered. This ensures that all writes with fwrite() are completed before other processes are allowed to write to that output stream.
Description
Sets the buffering for write operations on the given stream to buffer bytes.
Version
PHP 4.3.0, 5
Return value
Returns 0 on success, or EOFif the request cannot be honored.