PHP function stream_set_read_buffer()

Availability in versions: PHP 4.3.0

Sets file buffering on the given stream

Parameters

Parameter Data type Default value Note
$stream resource not The file pointer.
$buffer int not 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.

Return values

int

0 on success, or EOF if the request cannot be honored.

Other resources

Official stream-set-read-buffer documentation

Newsletter

Nejlepsi tipy a triky o PHP do Vaseho e-mailu. Clanky a novinky nejen ze sveta PHP a programovani.