我正在尝试将一堆xlsx文件复制到另一个目录,我想知道我做错了什么
// Move all xlsx files
$src = './';
// echo "<pre>";print_r($src);die;
$dst = 'files/';
//echo "<pre>"; print_r($dst);die;
$files = glob("*.xlsx");
//echo "<pre>"; print_r($files);die;
foreach($files as $file){
$file_to_go = ($dst,$file);
echo "<pre>";print_r($file_to_go);die;
copy($file, $file_to_go);
}
&#13;