This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
<?php | |
// Identify directories | |
$source = __DIR__ . "/wordpress"; | |
$destination = __DIR__; | |
// Cycle through all source files | |
function move_all($source, $destination) { | |
if (is_dir($source)) { | |
// Make the destination directory if not exist | |
@mkdir($destination); |