<?php
$src = ‘myfolder’;
$dst = ‘dest’;
$files = glob(“myfolder/*.*”);
foreach($files as $file){
$file_to_go = str_replace($src,$dst,$file);
copy($file, $file_to_go);
}
?>
<?php
$src = ‘myfolder’;
$dst = ‘dest’;
$files = glob(“myfolder/*.*”);
foreach($files as $file){
$file_to_go = str_replace($src,$dst,$file);
copy($file, $file_to_go);
}
?>