search
top

Copy Directory

I am listing here the method to copy full Directories with all sub-directories and files. <?php $source = 'f1'; //folder name $target = 'f2'; //folder name , if target folder does not exists, it will be created //echo 'src->'.$source.'<br/>'; //echo 'tar->'.$target.'<br/>'; if(is_dir($source)) { full_copy($source,$target); echo 'Folder copied'; } else { echo 'Not copied'; } function...
read more

top