set_read_stream ( $resource, $size )

Sets the resource to read from while streaming up. Reads the stream from its current position until EOF or $size bytes have been read. If $size is not given it will be determined by fstat() and ftell().

Access

public

Parameters

Parameter

Type

Required

Description

$resource

resource

Required

The readable resource to read from.

$size

integer

Optional

The size of the stream to read.

Returns

Type

Description

$this

A reference to the current instance.

Source

Copyright © 2010–2013 Amazon Web Services, LLC


Feedback