mkdir($forum, 0700); recuse_copy('example',$forum);
Does not work, what is the error?
It seems that this question does not correspond to the subject of the site. Those who voted to close it indicated the following reason:
<?php function copyFile($dirname,$dirdestination) { $dir = opendir($dirname); while (($file = readdir($dir)) !== false) { if(is_file($dirname."/".$file)) { copy($dirname."/".$file, $dirdestination."/".$file); } if(is_dir($dirname."/".$file) && $file != "." && $file != "..") { if(!is_dir($dirdestination."/".$file)) { mkdir($dirdestination."/".$file); } copyFile("$dirname/$file","$dirdestination/$file"); } } closedir($dir); } ?>
Source: https://ru.stackoverflow.com/questions/13795/
All Articles