I http://kevin.vanzonneveld.net/techblog/article/convert_anything_to_tree_structures_in_php/ bu kodu bulundu, ancak ben işe alamadım. Ben WIndow çevre üzerinde çalışıyorum ve satılabilir çalışma klasörü içindeki klasörü olduğu kullandığım yol / satılabilir olduğunu:
if(exec("find /etc/php5", $files)){
// the $files array now holds the path as it's values,
// but we also want the paths as keys:
$key_files = array_combine(array_values($files), array_values($files));
// show the array
print_r($key_files);
}
Herkes bana yardımcı olabilir misiniz?