phpBB API Documentation
Interface

phpbb\storage\stream_interface

interface stream_interface

Methods

resource read_stream(string $path)

Reads a file as a stream

write_stream(string $path, resource $resource)

Writes a new file using a stream

Details

at line 27
public resource read_stream(string $path)

Reads a file as a stream

Parameters

string $path File to read

Return Value

resource Returns a file pointer

Exceptions

exception When unable to open file

at line 38
public write_stream(string $path, resource $resource)

Writes a new file using a stream

Parameters

string $path The target file
resource $resource The resource

Exceptions

exception When target file exists When target file cannot be created