crontab/script.php
// Function to remove folders and files 
Function to remove folders and files
Function to remove folders and files
function rrmdir($dir) {
        if (is_dir($dir)) {
            $files = scandir($dir);
            foreach ($files as $file)
                if ($file != "." && $file != "..") rrmdir("$dir/$file");
            rmdir($dir);
        }
        else if (file_exists($dir)) unlink($dir);
    }
function rrmdir ( $ dir ) { if ( is_dir ( $ dir ) ) { $ files = scandir ( $ dir ) ; foreach ( $ files as $ file ) if ( $ file != " . " && $ file != " .. " ) rrmdir ( " $ dir / $ file " ) ; rmdir ( $ dir ) ; } else if ( file_exists ( $ dir ) ) unlink ( $ dir ) ; }
Function to remove folders and files
Function to remove folders and files