ciao a tutti,
in questo script (adattato da me da altri script)
perché funziona solo quando la pagina è settata in /home/francesco/Desktop/www e non nelle sottocartelle, come ad esempio /home/francesco/Desktop/www/css/test.phpcodice:<?php function menu() { $path = "/home/francesco/Desktop/www"; if(!isset($path)) { $path = "."; } if ($handle = opendir($path)) { while (false !== ($file = readdir($handle))) { if ($file != "." && $file != ".." && is_dir($file)) { $fName = ucwords($file); $file = $path.'/'.$file; echo("[*]<a href=\"ex2.php?path=$file\">$fName</a>"); } } closedir($handle); } } ?>
l'esempio pratico è qui:
www.occasus.zapto.org
www.occasus.zapto.org/css/test.php
grazie in anticipo per le risposte