/ Published in: PHP
Expand |
Embed | Plain Text
<?php function copyr($source, $dest){ // Simple copy for a file return $c; } // Make destination directory } // Loop through the folder while (false !== $entry = $dir->read()) { // Skip pointers if ($entry == "." || $entry == "..") { continue; } // Deep copy directories if ($dest !== "$source/$entry") { copyr("$source/$entry", "$dest/$entry"); } } // Clean up $dir->close(); return true; } ?>
You need to login to post a comment.
