View Full Version : how to view files in a directory on a web server
05-25-2010, 09:18 PM
I remember you can put a certain file on your web folder that allows you view all the files in that folder and sub folder..
does anyone know what i have to do?
05-25-2010, 11:09 PM
i think this is a server setting named directory listing... you should look for it in your server control panel
hope it works!
05-26-2010, 02:34 AM
Are you looking for a script to allow you to view files in a directory or are you looking for a way to allow you to view files in the directories on your site using your browser?
Look into the PHP readdir function if you want to write a script.
PHP reddir manual (http://php.net/manual/en/function.readdir.php)
If you want to enable anyone to view the files in a directory on your web site, look into the Apache directive Options Indexes.
You can also use Option Indexes in an .htaccess file. I think that might be what you are looking for. If you use Options Indexes, anyone will be able to view the files in a directory.
Powered by vBulletin® Version 4.2.2 Copyright © 2016 vBulletin Solutions, Inc. All rights reserved.