(no version information, might be only in CVS)
stream_copy_to_stream -- Copies data from one stream to anothersource and dest can each be either an active stream resource (opened with fopen(), fsockopen(), stream_socket_connect(), stream_socket_accept(), or another stream creation function), or a string pointing to a filename or valid wrapper resource. If source or dest are strings, PHP will attempt to open the stream from reading or writting as appropriate, perform the copy, then close it.
Makes a copy of up to maxlength bytes of data from the current position in source to dest. If maxlength is not specified, all remaining content in source will be copied. Returns the total count of bytes copied.
See also copy().