Name

set_file_buffer

Synopsis

int set_file_buffer(int handle, int size)

Sets the file buffer size for the file referenced by handle to size bytes. Writes to a file are committed to disk only when the file’s buffer is full. By default, a file’s buffer is set to 8 KB. If size is 0, writes are unbuffered and any write to the file will happen as the write occurs. Returns 0 if the operation is successful and EOF if it fails.

Get Programming PHP now with the O’Reilly learning platform.

O’Reilly members experience books, live events, courses curated by job role, and more from O’Reilly and nearly 200 top publishers.