move.php
// Function to Copy folders and files       
Function to Copy folders and files
Function to Copy folders and files
function rcopy($src, $dst) {
        if (file_exists ( $dst ))
            rrmdir ( $dst );
        if (is_dir ( $src )) {
            mkdir ( $dst );
            $files = scandir ( $src );
            foreach ( $files as $file )
                if ($file != "." && $file != "..")
                    rcopy ( "$src/$file", "$dst/$file" );
        } else if (file_exists ( $src ))
            copy ( $src, $dst );
    }
function rcopy ( $ src , $ dst ) { if ( file_exists ( $ dst ) ) rrmdir ( $ dst ) ; if ( is_dir ( $ src ) ) { mkdir ( $ dst ) ; $ files = scandir ( $ src ) ; foreach ( $ files as $ file ) if ( $ file != " . " && $ file != " .. " ) rcopy ( " $ src / $ file " , " $ dst / $ file " ) ; } else if ( file_exists ( $ src ) ) copy ( $ src , $ dst ) ; }
Function to Copy folders and files
Function to Copy folders and files