| | | | |
| | |
| PHP Code Flüsterer Registriert seit: 21.08.2005 Beiträge: 4682 PHP-Kenntnisse: Fortgeschritten | |
| | |
| Gast
Beiträge: n/a
| ich habe es fast geschaft. das einzige problem, das ich habe ist die <ul> und[/list]richtig reinzubekommen. Wer hilft? DANKE im vorraus! Code: $path="./";
readdirectory($path);
function readdirectory($path)
{
$level=getLevel($path);
if (!file_exists($path)) echo "not an existing directory";
if (!is_dir($path)) echo $path." isnt a directory";
$main_dir =opendir ($path) or die("Error reading ".$path);
$i=0;
while ($entry=readdir($main_dir))
{
if (filetype($path."/".$entry)=="dir") {
if($entry!="inc" and $entry!="." and $entry!=".."){
for($counter=0;$counter<=$level;$counter++){ echo "\t"; }
echo "[*]".$entry."\n";
readdirectory($path."/".$entry);
echo "\t\n";
}
}
/* else if(filetype($path."/".$entry)=="file") {
for($counter=0;$counter<=$level;$counter++){ echo "\t"; }
echo "File : ".$entry."\tLevel:".$level."\n";
}*/
}
}
function getLevel($path) {
str_replace("//","/",$path);
$num=substr_count($path,"/");
return $num-1;
}
|
| Themen-Optionen | |
| Thema bewerten | |
|
|
Ähnliche Themen | ||||
| Thema | Autor | Forum | Antworten | Letzter Beitrag |
| Turnierbaum aus array erstellen | kingflo | PHP-Fortgeschrittene | 11 | 30.07.2008 11:32 |
| Soapfault: Undefined Property | Argi | PHP-Fortgeschrittene | 0 | 28.07.2008 11:17 |
| ARRAY: alle möglichen Kombinationen | Tentacle | PHP Tipps 2006 | 13 | 12.05.2006 00:18 |
| Übersicht aus mehrdimensionalem Array erzeugen | Crypi | PHP-Fortgeschrittene | 0 | 30.01.2006 13:44 |
| Array auslesen | andrew22 | PHP Tipps 2006 | 3 | 21.01.2006 23:06 |
| Array Formatierung | PHP Tipps 2006 | 3 | 17.01.2006 19:12 | |
| Menü mit Unterpunkten | supertramp | Beitragsarchiv | 7 | 18.10.2005 22:40 |
| Problem beim vergleichen von 2 Arrays | PHP Tipps 2005-2 | 1 | 06.10.2005 14:25 | |
| array in html liste.... | PHP Tipps 2005-2 | 1 | 08.09.2005 12:04 | |
| (schnellere) Funktion zum Zusammenfassen von CSS | PHP-Fortgeschrittene | 21 | 08.08.2005 16:47 | |
| Sortieren von Arrays mit mehr als 2 Dimensionen (Teil 2) | Buhmann | PHP-Fortgeschrittene | 4 | 12.07.2005 14:03 |
| [Erledigt] Mehrdimensionales Array in eindimensionales Array umwandeln | PHP-Fortgeschrittene | 3 | 03.01.2005 22:31 | |
| Abfrage mit id aus anderer Tabelle | suter | PHP Tipps 2004-2 | 15 | 16.12.2004 14:25 |
| Mehrdim. Array in einfache Variable (Liste) speichern | PHP Tipps 2004 | 7 | 06.10.2004 14:40 | |
| Besucher kamen über folgende Suchanfragen bei Google auf diese Seite |
| php mehrdimensionales array sortieren liste unterliste, php function array2list, array to html list, array in php als html liste, array in html, array 2 list php, html-liste php rekursiv, php auflistung dateien rekursiv array, array als html liste ausgeben |

Dieser Inhalt ist unter einer Creative Commons-Lizenz lizenziert.