Recommend this pageIf this page was useful to you, please recommend it to fellow websurfers:
You may rate this script by simply clicking on the appropriate star (5 stars is the best rating).
Extract the contents of the archive in the directory you want to list on your webserver
Open “dirLIST/config.php” and follow the “USER CONFIGURATION” instructions. Default configuration is sufficient for using the script straight away.
dirLIST versions 0.3.0 and above include the image thumbnail feature. In order to speed up the user experience, it is recommended that you run dirLIST_files/cache_thumbs.php which will generate and save thumbnails of all the images under the main listed directory.
Enable this feature at your own risk!
Users can upload PHP files with code to cause damage such as delete your entire webroot, retrieve your MySQL passwords etc... To help against this, place .php, .php3, .php5 extensions in the banned file types (included by default). This can be found in the configuration file (dirLIST_files/config.php). To further protect against this, enable download speed limit. This will effectively pipe any downloads through a PHP script and hence disable direct access to files preventing execution of any server side scripts. Please also see the security tips below.
Due to different server configurations, setting the maximum file upload size can differ from one server to another. You will need to find out how to change the limit by contacting your host. Most common methods include the use of either a .htaccess or php.ini file. If you are the owner, you can directly edit PHP’s configuration file and change the following variables:
These can also be adjusted as mentioned above by the use of .htaccess/php.ini files, but this again depends on your host.
.htaccess file example (uploaded to the root or your site):
php_value upload_max_filesize 20M
php_value post_max_size 20M
php.ini file example (uploaded to the root or your site):
upload_max_filesize = 20M
post_max_size = 20M
Place dirLIST in a directory other than the one you are listing. This will make it harder for people to find and directly access your files. For example, place dirLIST in “home/webroot/” and list “home/webroot/folder/images/”. People will not know you are listing the images folder and hence cant find your files easily. This can be used in conjunction with download speed limit which will pipe downloads through a PHP script and effectively prevent direct access to files.
For this to work, you need to be logged in as the admin (the admin feature is enabled by default but the credentials need to be setup in the dirLIST_files/config.php file). Simple click on the `Check for Update` link and if an update is available, you will be presented with a link to download it.
If you need any help, contact me.
Suggestions and bug reports are highly appreciated.