directory listing script?
directory listing script?
Out of context: Reply #7
- Started
- Last post
- 7 Responses
- xrusos0
i figured out as much as i could... thanks anyway.
[?php
function getDirList ($dirName) {
$d = dir($dirName);
while($entry = $d->read()) {
if ($entry != "." && $entry != ".." && $entry != "index.php") {
echo $dirName."/".$entry."" ?"[br] [a href=$entry]$entry[/a]" :"[br] [a href=/$entry]$entry[/a]";
}
}
$d->close();
}getDirList(".");
?]