This topic is locked

List files from a directory path folder

7/13/2009 4:18:51 PM
PHPRunner General questions
M
mattd1 author

For an intranet application, we have some PDF files scanned in to a network folder from the scanner.
The path is consistent, and stored in a Parameter table, so easy to obtain.
What I want to do, which is easy, is to create linked database rows that refer to the scanned files - probably moving those that are linked as part of the process to a different folder path.
So:
I therefore need to be able to list files from a given folder as rows on the page.

Then users can "profile" them, by setting their type, expiry date and some other settings - click Save, and the file would be moved to the "profiled" folder, and a row in the Document table would be created.
So, any pointers on how to show the files in a folder? (I checked the BBs already and generally all the folder path/file items are concerned with showing file system items in preview etc).
And, if anyone can provide pointers to the PHP methods I should look at for moving file system objects around as I suggest, that would be most helpful too!
Thanks a lot.
Matt

J
Jane 7/14/2009

Matt,
you can set up field as File/Field on the"View as" settings/"Edit as" settings dialog on the Visual Eitortab.

To save files in the separate directories for each user use Before record addedevent on the Events tab:

http://www.xlinesoft.com/phprunner/docs/in...ers_folders.htm

B
bussb 7/21/2009

Matt,

you can set up field as File/Field on the"View as" settings/"Edit as" settings dialog on the Visual Eitortab.

To save files in the separate directories for each user use Before record addedevent on the Events tab:

http://www.xlinesoft.com/phprunner/docs/in...ers_folders.htm


I have a PHP Runner database that links to PDF Files stored in a directory on my webserver. Users enter a record with indexing fields such as:

Document Date

Supplier Code

Approval

Approval Date

XYZ.pdf
Then they click save and the record is stored to the DB. Just use the file type in the visual editor.