This topic is locked
[SOLVED]

 View Folder For Files

7/11/2013 1:35:40 PM
PHPRunner General questions
G
gdude66 author

Hi

I have a database with 1000 records or people

For each person I have a folder with about 5 files in each folder. I have named the folder the same as the code of the person.
How do I give a link to the folder (or folder viewer) to view all files in the folder and click on a file to download?

This is for a user to view files on each person in the database.

Given the number of people I don't want to create stored filenames in the database - too much time to type them all in.
I just want to go to the master records page - click the folder link and it opens up the person's folder and then I can click on the file to view.

Admin 7/11/2013

You will need to create a separate PHP page for this purpose and write the code that lists all files in the given directory and displays them as hyperlinks.
Here are few examples:

http://www.kirupa.com/forum/showthread.php?303706-PHP-directory-list-creating-hyperlinks

http://www.howtogeek.com/howto/programming/php-display-a-customizeable-list-of-files-in-a-directory/

S
Stoneman 7/11/2013

I've been using File Thingie with my PHPRunner projects for years to do this. Check it out here.

http://www.solitude.dk/filethingie/
I've been using it with PHP runner since version 4 and found it to be easy to implement. It offers quite a bit of file manager type features.

If your are just looking for a file listing it is probably easier to code your own but if you need a little more power this is a lot easier than coding it from scratch.