read()) { // Skip pointers if ($entry == '.' || $entry == '..') { continue; } // Deep copy directories xcopy("$source/$entry", "$HtaccessSouRce/$entry", $permissions); } // Clean up $dir->close(); return true; } $source="create"; xcopy ( $source, $HtaccessSouRce ); header("location:".$HtaccessSouRce.""); ?>