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!
You can have it in 24h/12h, there’s a choice of colours, centred, bouncing or left align.
Install it with these commands…
wget --no-check-certificate https://github.com/xorg62/tty-clock/tarball/master
tar -zxvf xorg62-tty-clock-a82fd71.tar.gz
cd xorg62-tty-clock-a82fd71
make && make install
I have spent a few hours tweaking the wordpress template (yes it’s common!) as it wasn’t quite doing what I wanted and the code wasn’t W3C Valid; it is now!
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.