STREAM_COPY_TO_STREAM
Copies data from one stream to another
SYNTAX
stream_copy_to_stream ( resource $source , resource $dest [, int $maxlength = -1 [, int $offset = 0 ]] ) : int
PARAMETERS
source
The source stream
dest
The destination stream
maxlength
Maximum bytes to copy
offset
The offset where to start to copy data
RETURN
Returns the total count of bytes copied, or FALSE on failure.
EXAMPLES
SOURCE DEST
1995
MAXLENGTH
1024
OFFSET
1024