But I suppose you'll want more than a flippant answer to your direct question.
One way is to use opendir() (read the page, especially the example code) to fetch the contents of a directory. All you have to do then is put <a href="....">...</a> tags around each item as you print.
Another way is to use glob() (again, look at the page and the example code) to fetch a directory's contentents.
This site uses cookies to help personalise content, tailor your experience and to keep you logged in if you register.
By continuing to use this site, you are consenting to our use of cookies.