Download Latest Version fire_calc_1.3.4.zip (1.5 MB)
Email in envelope

Get an email when there's a new version of Web Tech Tools

Name Modified Size InfoDownloads / Week
Parent folder
php-list-contents-of-a-directory_v0.2.zip 2010-07-29 7.7 kB
README.txt 2010-07-29 3.6 kB
Totals: 2 Items   11.3 kB 0
Written by Sam Gleske and George Purkins
This is a simple php script which turns any directory into a directory viewable on the web.
This script is designed with an intranet in mind.
This script originated from: http://www.liamdelahunty.com/tips/php_list_a_directory.php
This script is an improved and more accurate version from the original.
This script is not governed by a licence but if you really want it to be then I say the MIT license to protect
me from lawsuits haha.

My thoughts with this little project:
I don't have any intended goal with this project.  I only wanted to create a nice simple implementation of
a directory listing software package which could be used in a production environment on an intranet.  I will
be proposing this directory indexing script to Drexel University.  It is currently in use at Thomas Jefferson
University.  The intended purpose is for sharing software with others quick and dirty.  I used XAMPP and
PortableApps.com Notepad++ on my flash drive to develop this on my Windows machines.  I also use Kubuntu 10.04
with apache/php/mysql with vim or Aptana as the IDE on my main dev machine.  Just in case anyone was wondering
how I poop out these projects or what I use.

Intructions for the latest version:
1. Extract the contents of php-list-contents-of-a-directory_v0.x.zip to the root of your software serving
server.
2. Edit default.css and default2.css from within the .resources directory and point the header to your desired
logo.
3. If you do not extract this to the root directory of a server then you must edit .index.php and .index2.php
and change the root path of the referenced css files /.resources/*.css.
NOTE: This must remain a path in relation to the server root because only .index.php and .index2.php get 
copied.
4. If you liked just the original simple script by itself then just use .index2.php.  It is the same script as
the original with no dependencies.  But it benefits from all of the bug fixes from the latest version.  It 
does not depend on the .resources directory.

v0.2 New Features:
1.  CSS2 for non-IE browsers
2.  For IE browsers the script uses JavaScript to redirect to the old IE friendly version.
3.  Replaced tables with DIV layers.  Files and folders are now highlighted on mousover.
4.  User can now click on entire row to enter a directory
5.  Windows and Unix/Linux servers are now fully supported with no modification of the source code.
6.  Now there is a .resources directory
7.  Fixed bug on Windows servers where sort threw an exception in a null array.
8.  Fixed bug in getdirsize() function to handle shell escape characters.
9.  Fixed bug where now handles symbolic links in the web directories.  Correctly calculates size.
10. Includes all the features from v0.1

v0.1 and up Features include:
1. Breadcrumb folder path
2. Folders with names longer than 10 chars get shortened to 10 chars in the breadcrumb.
3. Simple Parent Directory
4. Parses files and folders in the current directory.  Lists folders first, then lists all files.
5. All listings are sorted A-Z alphabetical.
6. Script copies itself to the listed subdirectories (not all subdirectories) for recursive viewing in folders.
7. File and directory sizes are calculated using du -sh.  This is only available on Unix/Linux systems.

Recommendations:
1. I suggest going into httpd.conf in apache (or your favorite web server) and setting the directory index to
.index.php and .index2.php.
2. Come up with your own logo.  For trademark reasons I can't include Jeffersons.

Version releases (mm/dd/yyyy):
v0.2 released 07/28/2010
v0.1 released 07/14/2010
Source: README.txt, updated 2010-07-29