advanced code snippet search
sekihin on 01/10/11
php file
01/10/11 05:23pm
function deldir($dir) { $dh=opendir($dir); while ($file=readdir($dh)) { if($file!="." && $file!="..") { $fullpath=$dir."/".$file; if(!is_dir($fullpath)) { if($file != "abc.csv") { unlink($fullpath); } } else { deldir($fullpath); } } } closedir($dh); }
Report this snippet Tweet
Comment:
You need to login to post a comment.