At last, I have released my PHP file lister code (v 1.6.2). It’s now been officially named as ldir and it’s a function so you can simply call it up within a web page and bang, your files are listed. It’s even valid HTML!
I have been slowly working on this file lister and will re-release it once its in a state I’m happy to release it, when I do, I will remove previous versions as this one will contain a lot of fixes and be better coded. More news to come soon about that.
A fork in the code!
I have also forked this code off from v1.4.2 (unreleased) to start work on a proper PHP file manager but this is going slowly.
I have got around to tidying up my php file lister.
This version is slightly different from the one previously posted on the site, as it can just be plopped onto a site and work. It will pull the file icons and CSS from my server and you will have a pretty little file lister. I have an example over here, its slightly modified from the standard code but not much.
Changelog from v1.0 to v1.4:
Added PHP4 Support
Hidden filenames/types are checked more efficiently
index.php and robots.txt are now hidden by default
CaSe SenSitiVity errors fixed
Filetype icon case corrected
Copyright and Linkback re-added (was missed out in v1.0)
External icons, CSS and Favicon host are linked to
Some redundant code removed
either download the code or copy & paste it from this post.