Forum Moderators: coopster
$dir = "directory/to/copy";
$dest = "destination/of/doom";
if(!is_dir($dest)) {
mkdir($dest);
}
foreach(scandir($dir) as $file) {
if($file!= '.' && $file!= '..') {
copy($dir.'/'.$file,$dest.'/'.$file);
}
}
Something like that. Obviously if you have a directory within the directory it won't work, but this is just an example ;)
Good luck!