Welcome to WebmasterWorld Guest from

Forum Moderators: phranque

Message Too Old, No Replies

listing files?



10:37 pm on Jun 19, 2007 (gmt 0)

5+ Year Member


I am looking for a way to list thousands of files I have in a directory on my web server (windows/apache) for downloading.

Currently I have coded some of them for HTML. Problem is I need to add files every day and do not want to go to the time consuming effort to code them all.

I am wanting just a basic page that lists the filename and extention with a link to download. It would be nice if there was some html code to auto generate this without going to asp net.

At the very least a program I could run on the directory to auto generate the html code.

If anyone has any suggestions would be appreciated.



11:20 pm on Jun 19, 2007 (gmt 0)

WebmasterWorld Senior Member jtara is a WebmasterWorld Top Contributor of All Time 10+ Year Member



Most web servers do this automatically if you simply delete the index.html file.


11:34 pm on Jun 19, 2007 (gmt 0)

5+ Year Member

I am sorry I did not make myself more clear.

The website is mine and I have 4 domains on the server.

I do not want to have a domain that just lists files. What I need is a webpage the displays the files in one directory. Directory lister is a stand alone program that would generate the files as a html document but does not provide downloadable links to each file.

Self generating code would be better if it can be done with out asp net.

Or if someone knows of a program that would generate the html code with downladable link to each file.



4:28 am on Jun 20, 2007 (gmt 0)

5+ Year Member

After doing a lot of searches and checking out a half dozen programs I have found a program called "the html directory". Makes html file of directory with downloadable links.




12:44 pm on Jun 20, 2007 (gmt 0)

WebmasterWorld Senior Member 10+ Year Member

You can use PHP for that (if you have it), be a lot better than running a program locally.


12:50 pm on Jul 9, 2007 (gmt 0)

5+ Year Member

Yes, php is installed for a forum. How would I go about doing that in php? I also need to do it for a second directory now on a different webpage.


11:58 am on Jul 15, 2007 (gmt 0)

5+ Year Member

I found an answer in apache.


7:37 pm on Jul 18, 2007 (gmt 0)

5+ Year Member

to be specific I put this link with par in the html refering page.


lists files in ascending name order.


7:22 am on Jul 19, 2007 (gmt 0)

5+ Year Member

wordpress, attach files and the nesting is done for you.

Featured Threads

Hot Threads This Week

Hot Threads This Month