The Web Design Group

... Making the Web accessible to all.

Welcome Guest ( Log In | Register )

 
Reply to this topicStart new topic
> Creating a Hyperlink list from a directory list
Dana
post Oct 24 2006, 12:55 PM
Post #1





Group: Members
Posts: 4
Joined: 24-October 06
Member No.: 550



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
User is offlinePM
Go to the top of the page
Toggle Multi-post QuotingQuote Post
jimlongo
post Oct 24 2006, 01:12 PM
Post #2


This is My Life
*******

Group: Members
Posts: 1,128
Joined: 24-August 06
From: t-dot
Member No.: 16



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.
User is offlinePM
Go to the top of the page
Toggle Multi-post QuotingQuote Post
Dana
post Oct 24 2006, 01:36 PM
Post #3





Group: Members
Posts: 4
Joined: 24-October 06
Member No.: 550



QUOTE(Dana @ Oct 24 2006, 10:55 AM) *

New to the list so any help is appreciated.

It an IIs system.

THANKS

Dana

User is offlinePM
Go to the top of the page
Toggle Multi-post QuotingQuote Post
jimlongo
post Oct 24 2006, 02:48 PM
Post #4


This is My Life
*******

Group: Members
Posts: 1,128
Joined: 24-August 06
From: t-dot
Member No.: 16



I don't know the answer to that, someone else can help I'm sure.
User is offlinePM
Go to the top of the page
Toggle Multi-post QuotingQuote Post
stjepan
post Oct 24 2006, 03:59 PM
Post #5


Serious Coder
*****

Group: Members
Posts: 329
Joined: 15-October 06
From: zagreb, croatia
Member No.: 445



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.
User is offlinePM
Go to the top of the page
Toggle Multi-post QuotingQuote Post
Dana
post Oct 24 2006, 04:17 PM
Post #6





Group: Members
Posts: 4
Joined: 24-October 06
Member No.: 550



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
User is offlinePM
Go to the top of the page
Toggle Multi-post QuotingQuote Post
Christian J
post Oct 24 2006, 05:34 PM
Post #7


.
********

Group: WDG Moderators
Posts: 9,661
Joined: 10-August 06
Member No.: 7



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.
User is offlinePM
Go to the top of the page
Toggle Multi-post QuotingQuote Post
Dana
post Oct 25 2006, 07:57 PM
Post #8





Group: Members
Posts: 4
Joined: 24-October 06
Member No.: 550



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...
User is offlinePM
Go to the top of the page
Toggle Multi-post QuotingQuote Post
jimlongo
post Oct 25 2006, 08:27 PM
Post #9


This is My Life
*******

Group: Members
Posts: 1,128
Joined: 24-August 06
From: t-dot
Member No.: 16



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.
User is offlinePM
Go to the top of the page
Toggle Multi-post QuotingQuote Post
Christian J
post Oct 26 2006, 04:54 AM
Post #10


.
********

Group: WDG Moderators
Posts: 9,661
Joined: 10-August 06
Member No.: 7



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.
User is offlinePM
Go to the top of the page
Toggle Multi-post QuotingQuote Post
stjepan
post Oct 26 2006, 06:28 AM
Post #11


Serious Coder
*****

Group: Members
Posts: 329
Joined: 15-October 06
From: zagreb, croatia
Member No.: 445



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."
User is offlinePM
Go to the top of the page
Toggle Multi-post QuotingQuote Post

Reply to this topicStart new topic
1 User(s) are reading this topic (1 Guests and 0 Anonymous Users)
0 Members:

 



- Lo-Fi Version Time is now: 28th April 2024 - 09:00 AM