bigblock73
08-03-2006, 01:11 PM
I have a folder called temp on my web server, and it contains a bunch of images. What I would like to do, it view the images in this directory...like an index type thing...that way I can click on the file name and view it. Basically, I want to view the content in this folder without having to put it into a html or published document.
How can I do this?
Slonaker
08-03-2006, 01:39 PM
I assume you are asking because of the message you get if you navigate to this directory?
http://www.73-87.com/temp/
The only way I can think of to use an index file to do what you want to do is to make it up from scratch, but that could be a lot of work.
I do it by logging in using FTP in Internet Explorer
Try clicking on the following link, then providing your login and password. If that is the wrong directory, navigate to the right one. Then you can look at each file by double clicking it.
If this is stuff you already know, my apologies. :)
ftp://73-87.com/temp/
Slonaker
bigblock73
08-03-2006, 02:24 PM
Slonaker, I knew that stuff already...but unfortunately, that method won't work for what I am trying to do. I want to share these pics with another forum member, so I thought if I dumped them in a folder, I could provide a link for them so they can view them.
I do appreciate the help though. :)
shifty
08-03-2006, 03:05 PM
it depends on what kind of server you're hosting on. If it's a linux server, you just need to drop an appropriate .htaccess file into the folder. if it's a windows-based server, you need to have the admin enable "directory listing" which will allow the contents of the folder to show when an INDEX page is not present.
shifty
08-03-2006, 03:07 PM
For a sample .htaccess file that will enable people to view the contents of a folder, download this file from my website - then drop it into the directory you want people to be able to view files in.
Nevermind, that didn't work.
Create a new file on your computer called .htaccess (this may be easier said than done). Once you get it made, type this text into it and save it, then upload it to the folder you want people to be able to see directory list for:
Options +Indexes
Slonaker
08-03-2006, 09:49 PM
I told you a way to do what you asked, but not what you wanted. Oops. :)
My host is set up the opposite of the way yours is. Any visitor can browse any directory. If I don't want people poking around in it, I have an index.html file that is a plain white page with a link to my website that i drop in it.
If you can't create an .htaccess file (I think windows wants a character before the dot in a filename) you might be able to rename the file to what you need after you upload it.
If you can't get Shifty's method to work, you can always create a quick n dirty thumbnail page using fireworks or photoshop or whatever you use. I did that once with fireworks, and it only took a few minutes.
Slonaker
shifty
08-03-2006, 10:26 PM
i also have a script (PHP script, i think) and if your web hosting service supports PHP, i can help you set it up. basically, i think you create a file named index.php and drop this file into it - it will automatically execute and display a list of files in the directory. it is pretty customizable and you don't need much (if any) programming experience to get it running. if your server doesn't recognize a *.php file as an index page, this may not help!
i would only use this if the HTACCESS file isn't applicable for you.