Home Upgrade Search Memberlist Extras Hacker Tools Award Goals Help Wiki Contact

PHP 

[Script]List files inside a folder with icons associated to file types

Screenshots:
[Image: QfcVp.jpg]

Description: Display files from a folder with PHP using a recursive function, this means it doesn't mater how complicated your directory tree is, it will always work.

Nice CSS styling and user friendly, collapse/uncollapse folders by clicking on them, or collapse/uncollapse ALL folders using the appropriate button, view file size, choose which directory to list, among other things.

Custom icons for different file types, only included: avi, mov, gif, png, jpg, php, txt, rar. But if you need more just ask, I have pretty much every file type there is, just didn't want to bloat this with loads of images.

RAR size: 68.5Kb
Files included:
  • file_tree.css

  • file.class.php

  • file_tree_collapse.js

  • index.php

  • Lots of .png icons



Known bugs: none, but it can take a while if you have loads of files, takes 3-4 seconds to display 2000 files.

Hope this is useful for someone, if you develop a system that needs uploaded files to be listed in a nicely styled manner this might be it.



Very, very nice script! It works. It works perfectly with my file library. :) Thanks for sharing!


Possibly Related Threads...
Thread / Author Replies Views Last Post
[PHP] by FuroremSep 30, 2015 04:00 AM 5 211 Sep 30, 2015 04:00 AM
Last Post: Squito
[PHP] by Flacko.Jun 14, 2015 06:34 PM 17 9,116 Jun 14, 2015 06:34 PM
Last Post: Flacko.
[PHP] by еlixirDec 3, 2014 06:41 PM 5 137 Dec 3, 2014 06:41 PM
Last Post: еlixir