View Full Version : Can I access a folder on my website and display its contents?
effpeetee
08-09-2008, 11:56 AM
I have a folder "icons" on my website. I have been unable to access it with
http://exitfegs.co.uk/icons/*.*
or
http://exitfegs.co.uk/htdocs/icons/*.*
Is it possible to get to it and if so how.:confused:
Frank
abduraooft
08-09-2008, 03:06 PM
Normally(unless there is an index file in the directory or the directory listing is prevented ) the server directly list all the files and directories in any directory.
In your case, I don't see the directory /icons (as you given), but it's giving a 404- page not found error.
Just have a try by creating a directory named icons, and then upload an .htaccess file having
Options +Indexes to this directory. (Alternatively you can enable the listing from the Website Control Panel)
effpeetee
08-09-2008, 10:41 PM
Hi! abduraooft.
This works - http://exitfegs.co.uk/Icons/Bear.ico but I really was trying to show all the icons on screen.
It seems to be downloading but nothing shows up.
Frank
Nightfire
08-09-2008, 10:55 PM
Shows as a 403 error. Only route is either htaccess, or creating a php file to show all contents in that directory
effpeetee
08-10-2008, 08:31 PM
Shows as a 403 error. Only route is either htaccess, or creating a php file to show all contents in that directory
What shows a 403 error. The link I gave above works for me.
Frank
_Aerospace_Eng_
08-10-2008, 11:51 PM
Frank do you host your own site or do you have a webhost to host your site? The first urls won't work as they are case sensitive. You should be trying to navigate here: http://exitfegs.co.uk/Icons/
However as stated you get a forbidden 403 error. This means indexes have been disabled.
Do what we are telling you. It helps you know. Create a .htaccess file in the Icons folder notice the 'I' and put this inside of the htaccess file
Options +Indexes
That should list all of the Icons in that folder or you can opt for something a little prettier and advanced. Something like this is what I'm referring to.
http://www.digioz.com/phpscripts.php
Check out the demo for their directory indexer.
You can find tons of scripts like this, many of them free at www.hotscripts.com
Since I think your server supports php you may want to search for "directory indexer" in the php section on hotscripts.com
http://www.digioz.com/indexer/index.php that is their demo. Just load their index.php file into the Icons folder and voila!
Here is another that might be good for your needs as I think it will display the actual icons themselves
http://0zz.org/dev/
effpeetee
08-11-2008, 09:29 AM
Thanks Aero for that very comprehensive reply. The I or i of Icons was just a typo, I had been using I. I have now put the php into the Icons folder and can now list the folder.
I would like to see the actual icons but I will have to work on that as I do not understand how to implement it yet.
Again, many thanks for your help.
EDIT: I do not host my own site. I use Streamline.net
I have used the last one you mentioned http://0zz.org/dev/
but does not show the icons. They will display individually as they are 'clicked' but not all together.
http://exitfegs.co.uk/Icons/
Frank
_Aerospace_Eng_
08-11-2008, 01:48 PM
Frank I couldn't get the images to show either. I've just tested the one found here: http://www.bitfolge.de/snif-en.html
And it seems to display the images just fine. It won't display the icon files but I don't know of any php function that can create thumbnails from icon files.
effpeetee
08-11-2008, 02:40 PM
I've looked at it Aero, but I cannot sort it out at all. My knowledge of php is minimal. I shall need to get the book out and do some study.
Frank
_Aerospace_Eng_
08-11-2008, 05:20 PM
Its the same as the other one. Download the files, place them in the Icons directory. Upload both the subdir folder and the index.php file and there you go.
effpeetee
08-11-2008, 09:13 PM
Its the same as the other one. Download the files, place them in the Icons directory. Upload both the subdir folder and the index.php file and there you go.
I have done what you suggest and it works mostly. It is a satisfactory result although not quite as far as I would have liked.
Many thanks for persevering with me.:D
http://exitfegs.co.uk/Icons/
Frank
vBulletin® v3.8.2, Copyright ©2000-2012, Jelsoft Enterprises Ltd.