Posted by Chung Leong on 09/13/05 18:03
Something like the following should work. Untested though. function delete_dir($path) { $files = glob("$path/*"); foreach($files as $file) { if(is_dir($file) && !is_link($file)) { delete_dir($file); } else { unlink($p); } } rmdir($path); }
[Reply to this message]
Copyright © 2005-2006 Powered by Custom PHP Programming