PHP函数copy()复制文件示例

清华大佬耗费三个月吐血整理的几百G的资源,免费分享!....>>>

<?php
$old = 'C:\tmp\someold.txt';
$new = 'C:\tmp\somenew.txt';
copy($old,$new) or die("couldn't copy $old to $new");
?>