Просмотр поста #307855: Учу php - нужны задачи

.
Blade
The Frontend-Warrior

мой велисапет

function lFM($dir){
    $d = array();
    $arr = opendir($dir);
    while($f = readdir($arr)){
        if($f == '.' or $f == '..') continue;
        $file = $dir.DIRECTORY_SEPARATOR.$f;
            if(is_file($file)) 
                if(time() - filectime($file) < 900)
                    echo $file.'
';
            if(is_dir($file)){
                lFM($file);
            }
       }
}
lFM('./');

есть ошибка, но не нашел ее пока что