I found jquery can generate file tree structure based on existing folders and files in web server:-
- http://www.abeautifulsite.net/blog/2008/03/jquery-file-tree/#demo
- http://www.mekya.com/blog/lang/eng/2010/03/demo-of-editable-jquery-tree-with-php-codes-duzenlenebilir-jquery-agac-yapisinin-demosu/
Actually, they are too advanced. I just need to create some folder making and file uploading functions, and mark their relativity in database, and present them in file tree like diagram. Is there any suitable option for me?
Thanks!
I have written a small class for representing tree-structures in PHP.
https://github.com/phunkei/php_mysql_tree
Probably you can adapt that for your needs.