Noen som kan hjelpe?
--
</torbjørn>
http://no.php.net/manual/en/class.dir.php
http://no.php.net/manual/en/function.readdir.php
http://no.php.net/manual/en/function.scandir.php
<?php
$dir = '/home/my/html/Mappe'; // Your Directory
$files = scandir($dir, 0);
print "<ul>\n";
for( $num= sizeof($files), $cnt=0; $cnt<$num; $cnt++ )
{
if(($files[$cnt] != '.') && ($files[$cnt] != '..'))
{
if (is_file($files[$cnt])) {
print '<li><a href="/Mappe/'.$files[$cnt].'">'.$files[$cnt]."</a></li>\n";
}else{ // it's a folder
print '<li><a href="/Mappe/'.$files[$cnt].'/">'.$files[$cnt]."</a></li>\n";
}
}
}
print "</ul>\n";
?>
mvh
arnulf @ http://s-a.no/
Snip kode
Flott, takk. Den skal jeg prøve.
--
</torbjørn>