I have a URL where I save some projects from my work, they are mostly MDB files, but some JPG and PDF are there too.
What I need to do is to list every file from that directory (already done) and give the user the option to download it.
How is that achieved using PHP?
To read directory contents you can use readdir() and use a script, in my example
download.php, to download filesIn
download.phpyou can force browser to send download data, and use basename() to make sure client does not pass other file name like../config.php