Codice PHP:
<?php
if ($handle = opendir('./')) {
while (false !== ($file = readdir($handle))) {
if ($file != "." && $file != "..") {
$link=str_replace(" ","%20",$file);
echo "<a href=\"./{$link}\"> {$file} </a>
\n";
}
}
closedir($handle);
}
?>
Codice PHP:
<?php
if ($handle = opendir('./')) {
while (false !== ($file = readdir($handle))) {
if ($file != "." && $file != "..") {
$link=str_replace(" ","%20",$file);
echo "<a href=\"./{$link}\"> {$file} </a>
\n";
}
}
closedir($handle);
}
?>