Prova con questo...
codice:<html> <head> </head> <body><?php function checkDir($shift,$rep,$num) { //print "$rep "; $open= @OpenDir($rep); while($image=@ReadDir($open)) { if(($image!=".")&&($image!="..")) { $repertoire = $rep."/".$image; $repname = $image; if (is_dir($repertoire )) { print str_repeat("", $num); print "<a href=\"".THIS_PAGE_NAME."?repert=$shift/$image&var=$GLOBALS[var]&concat=$GLOBALS[concat]&appel=$GLOBALS[appel]\" class=\"st_text\">$repertoire</a> \n"; checkDir("$shift/$image",$repertoire,$num+3); } // if (is_dir( $image)) { } // if(($image!=".")&&($image!="..")) { } // while($image=@ReadDir($open)) } // function checkDir($rep) checkDir("",$DOCUMENT_ROOT,0);?> </body> </html>

Rispondi quotando