What is the ideal method of copying data between two opened files?
copy($source_file, $destination_file);
copy(destination_file, $source_file);
stream_copy_to_stream($source_file, $destination_file);
stream_copy_to_stream($destination_file, $source_file);
stream_bucket_prepend($source_file, $destination_file);
Submit