Help - Search - Members - Calendar
Full Version: Creating a Hyperlink list from a directory list
HTMLHelp Forums > Web Authoring > Markup (HTML, XHTML, XML)
Dana
New to the list so any help is appreciated.

I am looking for a way to display a directory into a list of hyperlinked files.

THANKS

Dana
jimlongo
Is your server Apache and do you have ability to write .htaccess files or control panel access?

What you want is referred to as index options directive.

Basically if you have this setup properly and don't have an index.html file in a directory then the files show up as a list.
Dana
QUOTE(Dana @ Oct 24 2006, 10:55 AM) *

New to the list so any help is appreciated.

It an IIs system.

THANKS

Dana

jimlongo
I don't know the answer to that, someone else can help I'm sure.
stjepan
Directory listing should be enabled in IIS Manager.

Microsoft says:
QUOTE
By default, directory browsing is disabled in IIS so that users cannot see the contents of directories. To enhance security, you should leave directory browsing disabled unless you have a specific reason to enable it. If you enable directory browsing, ensure that you only enable it on the particular directory or directories that you want to share.


Go here: http://technet2.microsoft.com/WindowsServe...3.mspx?mfr=true

and click on IIS 7.0 Beta: Configuring Directory Browsing in IIS 7.0

It's for IIS 7.0 but I think it's the same for other versions.
Dana
I have it enabled on the server for that directory, but dont' understand what html to use to allow it to display.

Would you use the <dir> list command? That's what I was trying but apparently have some syntex or something wrong as it doesn't do anything.

THANKS
Christian J
QUOTE(Dana @ Oct 24 2006, 11:17 PM) *

I have it enabled on the server for that directory, but dont' understand what html to use to allow it to display.


The directory listing appears if there's no default file (index.htm, index.html, etc) in the directory.
Dana
OK, Thanks I was able to get the File dir to work..

But, it there a way to do the same thing but a better output or display? Since the filenames don't mean much to most people can I read the filenames and display them into an html page rather than just display the directory list?

ex:

Judge X Calendars:

November 1
November 2
November 3

Judge Y Calendars:

November 1
November 2
November 3
.....

Current files are stored as:

judx110106ct1
judx110206ct1
judy110106ct2
etc...
jimlongo
Sure you could make an HTML page with links to all those files, but the problem becomes having to change the html every time you add or remove a file - if it's often that could become tedious.
Christian J
With a server-side script (e.g. PHP) you can read the contents of a directory and produce an HTML file containing links to all (or some) of the files.
stjepan
QUOTE(Christian J @ Oct 26 2006, 11:54 AM) *

With a server-side script (e.g. PHP) you can read the contents of a directory and produce an HTML file containing links to all (or some) of the files.


Maybe this may help:
http://www.loria.fr/~szathmar/off/projects...verse/index.php

When there, click on "The etalon is here."
This is a "lo-fi" version of our main content. To view the full version with more information, formatting and images, please click here.
Invision Power Board © 2001-2010 Invision Power Services, Inc.