Показать сообщение отдельно

  #2  
Старый 21.01.2009, 16:17
Pashkela
Динозавр
Регистрация: 10.01.2008
Сообщений: 2,841
Провел на форуме:
9220514

Репутация: 3338


Отправить сообщение для Pashkela с помощью ICQ
По умолчанию

А так пробовал?

PHP код:
<?php
function rmdir_recurse($path)
{
    
$pathrtrim($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);
}
?>
 
Ответить с цитированием