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.
beachnetAsked:
Who is Participating?
 
chewymonConnect With a Mentor Commented:
Change hosting company.  Even Geocities allows directory access. or at least they used to.
0
 
beachnetAuthor Commented:
Edited text of question.
0
 
chewymonCommented:
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.
0
Never miss a deadline with monday.com

The revolutionary project management tool is here!   Plan visually with a single glance and make sure your projects get done.

 
beachnetAuthor Commented:
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?
0
 
chewymonCommented:
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.
0
 
beachnetAuthor Commented:
chewymon,

What "appropriate info" should I ask the server administrator?  Do you think a Java applet would do this?
0
 
chewymonCommented:
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.
0
 
beachnetAuthor Commented:
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?
0
 
beachnetAuthor Commented:
Thank you for your help.  I guesss there is no hope.
0
All Courses

From novice to tech pro — start learning today.