Welcome, guest! Login / Register - Why register?
Psst.. new poll here.
Psst.. new forums here.
Microsoft is blocking us again (TY IP Reputation!) so just use oauth login instead. :)

Paste

Pasted as Plain Text by asdfafasffsa ( 14 years ago )
failas = './foto/';
$listas = listas($failas);

function listas($failas){
$handle = opendir($failas);
    while (false !== ($entry = readdir($handle)) ) {
        if ($entry!=".." && $entry!="."){
            if (is_dir($failas.$entry)){
               
                  $listas[]=$entry;
               $sudas = listas($failas.$entry.'/');
               foreach ($sudas as $reiksme) {
                     $listas[] = $reiksme;
                       }
           
            }

         }
    }
    return $listas;
}

 

Revise this Paste

Children: 53528
Your Name: Code Language: