![]() |
|
[PHP] [Script]List files inside a folder with icons associated to file types - Printable Version +- Hack Forums (https://hackforums.net) +-- Forum: Tech (https://hackforums.net/forumdisplay.php?fid=444) +--- Forum: Coding (https://hackforums.net/forumdisplay.php?fid=151) +---- Forum: Web Development (https://hackforums.net/forumdisplay.php?fid=183) +---- Thread: [PHP] [Script]List files inside a folder with icons associated to file types (/showthread.php?tid=2486607) |
[Script]List files inside a folder with icons associated to file types - username.txt - May 11, 2012 Screenshots: ![]() 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:
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. * - DAVEologist - May 11, 2012 Very, very nice script! It works. It works perfectly with my file library. :) Thanks for sharing! |