我正在尝试使用PHP中的copy()函数复制五个大文件,但是,当我尝试同时复制文件时,只有最后一个文件可以继续复制,而其他四个文件则突然停止。
<?php
$path_to_large_file_1 = 'http://very_large_file.zip';
$newfile_1 = '/home/username/public_html/files/file1.zip';
copy($path_to_large_file_1, $newfile_1);
$path_to_large_file_2 = 'http://very_large_file.zip';
$newfile_2 = '/home/username/public_html/files/file2.zip';
copy($path_to_large_file_2, $newfile_2);
$path_to_large_file_3 = 'http://very_large_file.zip';
$newfile_3 = '/home/username/public_html/files/file3.zip';
copy($path_to_large_file_3, $newfile_3);
$path_to_large_file_4 = 'http://very_large_file.zip';
$newfile_4 = '/home/username/public_html/files/file4.zip';
copy($path_to_large_file_4, $newfile_4);
$path_to_large_file_5 = 'http://very_large_file.zip';
$newfile_5 = '/home/username/public_html/files/file5.zip';
copy($path_to_large_file_5, $newfile_5);
?>