PHP函数copy()复制文件示例 2015/01/31 15670 <?php $old = 'C:\tmp\someold.txt'; $new = 'C:\tmp\somenew.txt'; copy($old,$new) or die("couldn't copy $old to $new"); ?>