PHP. Руководство по PHP. 2005
stream_copy_to_stream
stream_copy_to_stream
Описание
int stream_copy_to_stream (resource source, resource dest [, int maxlength [, int offset]])Makes a copy of up to maxlength bytes of data from the current position (or from the offset position, if specified) in source to dest. If maxlength is not specified, all remaining content in source will be copied.