Skip to content
A simple all-in-one php directory listing script.
PHP CSS JavaScript
Branch: master
Clone or download
Permalink
Type Name Latest commit message Commit time
Failed to load latest commit information.
.gitignore
gruntfile.js
index.php Bug fix. Nov 26, 2019
package.json Initial commit. Jun 17, 2019
readme.md
screenshot.png Add screenshot.png. Jun 23, 2019
style.scss Update comments to be more clear, add support for more file formats i… Jul 16, 2019

readme.md

Directory Lister

A simple all-in-one directory listing script written in PHP. Just drop only the index.php file into the directory you'd like to list on a server. It only lists the current directory, and links directly to the files it lists, so it can't be abused to list any other directories. The icons (famfamfam's silk icons - http://www.famfamfam.com/lab/icons/silk/) are base64-encoded into the stylesheet that's included in the file, so the script doesn't need a resource folder.

71 clean, commented lines of PHP awesomeness. Enjoy!


Quick Install (CLI)

To quickly install this script (just the index.php file), navigate to your directory in the command line interface, and paste in this command. You do need to have cURL installed, but that's available on most platforms that support php.

curl -O https://raw.githubusercontent.com/jpederson/directory-lister/master/index.php

Screenshot of Directory Lister


Developed with love by James Pederson.

You can’t perform that action at this time.