I'm needing to make a web site, that should list all the files that are in the directory /Files
(where /
is the Apache public - htdocs
), but excluding if there is any sub-directory. Also, they should have links for every file. Like this:
echo "<a href='Link to the file'>Test.doc</a>" . "\n"
How could I do it?