This small php function is a recursive remove directory that remove non empty dirs recursively. It enters every directory, removes every file starting from the given path.
function rmdir_recurse($path) { $path = rtrim($path, '/').'/'; $handle = opendir($path); while(false !== ($file = readdir($handle))) { if($file != '.' and $file != '..' ) { $fullpath = $path.$file; if(is_dir($fullpath)) rmdir_recurse($fullpath); else unlink($fullpath); } } closedir($handle); rmdir($path); }
What i don’t realize is if truth be told how you are now not really much more well-liked than you might be now. You are very intelligent. You know thus significantly in relation to this subject, produced me personally believe it from so many various angles. Its like men and women aren’t interested unless it’s something to accomplish with Girl gaga! Your individual stuffs outstanding. All the time handle it up!