Link to home
Start Free TrialLog in
Avatar of beachnet
beachnet

asked on

View directory contents

I would like the HTML code that would produce the contents, by file name, of the default directory that the Web page is residing.  The generated list of this directory are jpg and gif images that change every day.  I want the user to be able to access this Web page, and view the names of the images, then click on the image to view it.

If this cannot be done in HTML, is there a Java applet that would produce the same results?

I have tried to access the page using FTP:// but this gives me a message that says I can't do this because this requires a password.
Avatar of beachnet
beachnet

ASKER

Edited text of question.
I guess the easiest way would be to put the images in their own directory, say images.  Then the link is simple.  <a href="somepage.com/images"Click Me</a>

If the default directory that contains the images also contains an index.html(htm), any reference to it will automatically launch the webpage.
chewmon:

Unfortunately when I apply your solution to the problem I receive the following error message:

Directory Listing Denied

This Virtual Directory does not allow contents to be listed.

Therefore I need some other method to accomplish what I need to do.  Any more suggestions?
What host or server are you using?  This sounds like a server side security setup.  It may not be possible to do it in HTML unless you can get the appropriate info from the server administrater.
chewymon,

What "appropriate info" should I ask the server administrator?  Do you think a Java applet would do this?
I doubt it.  What you need is username and password at the very least.  Then the sys admin will have to allow you to show the directory or give you permission to change the settings.  I hope you have a lot of clout at the company.
Chewymon,

I contacted the company and they said if they did it for this site they would have to do it for all the sites and they could not do that.  I do have a user name and password that I use for FTP, but I cannot change the settings.

Thanks you for trying.

Is there anyone else that might have a solution for this problem?
ASKER CERTIFIED SOLUTION
Avatar of chewymon
chewymon

Link to home
membership
This solution is only available to members.
To access this solution, you must be a member of Experts Exchange.
Start Free Trial
Thank you for your help.  I guesss there is no hope.