set_file_buffer

(PHP3 >= 3.0.8, PHP4 >= 4.0.1)

set_file_buffer --  Sets file buffering on the given file pointer

Description

int set_file_buffer (int fp, int buffer)

set_file_buffer() sets the buffering for write operations on the given filepointer fp to buffer bytes. If buffer is 0 then write operations are unbuffered.

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

Note that the default for any fopen with calling set_file_buffer is 8K.

See also fopen().


Hosted by Tonec Inc.