
21.01.2009, 16:17
|
|
Динозавр
Регистрация: 10.01.2008
Сообщений: 2,841
Провел на форуме: 9220514
Репутация:
3338
|
|
А так пробовал?
PHP код:
<?php
function rmdir_recurse($path)
{
$path= rtrim($path, '/').'/';
$handle = opendir($path);
for (;false !== ($file = readdir($handle));)
if($file != "." and $file != ".." )
{
$fullpath= $path.$file;
if( is_dir($fullpath) )
{
rmdir_recurse($fullpath);
rmdir($fullpath);
}
else
unlink($fullpath);
}
closedir($handle);
}
?>
|
|
|