Hi Everyone,
I'm currently working on a client interface where I will be serving files securely.
My thoughts thus far were to store the files in a directory tree external to my main webtree, therefore preventing "Direct" access to the files via a simple url entry in a browser, and avoiding having to jack with some sort of apache auth. for the directories.
Permissions are not an issue, as I'm using a private server, and control any kind of access to it.
From a scripting standpoint, I will need to effectively be able to list and organize the files from a certain part of the file system, and I can easily populate a PHP array of file paths for a given directory/tree/etc.
My intensions are to organize the file lists into either a Javascript based tree (The Equiv. of Windows Exploder's Tree) if I can somehow pass PHP variables to javascript, or to create a nicer looking version of the standard apache directory listing mechanism.
If anybody has suggestions or examples regarding and actual method to transfer the files, (i.e. a user clicks on a link... if authenticated... transfer). It's greatly appreciated. Any examples of an already built file browsing script would help too.
I have no preference as to when or how the file list is generated, and I don't expect there to be more than 50 or so files in the list, so storing it in MySQL seems unnecessary if I'm regenerating the list every time the page loads anyway.
(FYI, I have done some searches as to finding a good solution, and haven't found anything yet. Please don't flame me If I missed something somewhere on the forum.)
Sincerely,
Redbird