Page 1 of 1

HTML Help

Posted: 2005-06-29 02:34pm
by General Zod
So, I'm building a new site, and regrettably my html knowledge is somewhat spotty at best. I've got most of it covered, but searches aren't turning up much help so far, so I figured I'd see if anyone here happened to know how to solve this problem.

I'm basically running on a linux server, with several directories and a good number of zip files per directory. What I'm wondering, basically, is there any way that I can get a web page to easily display the contents of that directory, and then have each file be a clickable link? Preferably without hours and hours of typing, if at all possible. Would be appreciated if anyone happened to know how to do this and could lend a bit of a hand with the code. :)

Posted: 2005-06-29 03:16pm
by Beowulf
Won't be difficult if you have PHP installed. Then you could make it automatically update too.

Posted: 2005-06-29 03:38pm
by Pu-239
Have

Code: Select all

<Directory [your directory here]>
                Options +Indexes
</Directory>
somewhere in your apache config, or the easier way would be to have a file named .htaccess in the folder you want to have the files listed and have this as it's contents:

Code: Select all

Options +Indexes
However, you have to have allowoverrides enabled in your apache config (which should be done for you if you are using shared hosting).

Posted: 2005-07-04 04:44pm
by CDS
I think the original poster is after a directory listing that is inline to the webpage?

In which case, there may be a php script out there to do it - I've never needed to do it myself so don't know.