Welcome to WebmasterWorld Guest from 23.22.53.106

Forum Moderators: phranque

Message Too Old, No Replies

listing files?

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

New User

10+ Year Member

joined:Dec 8, 2006
posts:31
votes: 0


Hi:

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.

John

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

Senior Member

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

joined:Nov 26, 2005
posts:3041
votes: 0


See:

[webmasterworld.com...]

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

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

New User

10+ Year Member

joined:Dec 8, 2006
posts: 31
votes: 0


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.

Thanks,
John

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

New User

10+ Year Member

joined:Dec 8, 2006
posts: 31
votes: 0


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.

thanks,

john

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

Senior Member

WebmasterWorld Senior Member 10+ Year Member

joined:Mar 4, 2004
posts:877
votes: 0


You can use PHP for that (if you have it), be a lot better than running a program locally.
12:50 pm on July 9, 2007 (gmt 0)

New User

10+ Year Member

joined:Dec 8, 2006
posts: 31
votes: 0


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 July 15, 2007 (gmt 0)

New User

10+ Year Member

joined:Dec 8, 2006
posts: 31
votes: 0


I found an answer in apache.
[httpd.apache.org...]
7:37 pm on July 18, 2007 (gmt 0)

New User

10+ Year Member

joined:Dec 8, 2006
posts: 31
votes: 0


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

[stopnwo.com...]

lists files in ascending name order.

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

Junior Member

10+ Year Member

joined:Oct 18, 2006
posts:139
votes: 0


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