Shoutbox

Creating a file Index - Printable Version

-Shoutbox (https://shoutbox.menthix.net)
+-- Forum: MsgHelp Archive (/forumdisplay.php?fid=58)
+--- Forum: Skype & Technology (/forumdisplay.php?fid=9)
+---- Forum: Tech Talk (/forumdisplay.php?fid=17)
+----- Thread: Creating a file Index (/showthread.php?tid=43253)

Creating a file Index by Joe on 04-20-2005 at 03:10 AM

How do you create a file index Like This.
Might be Noob-ish, but I haven't a clue. Please help me... PM me or post on here if you are willing to help or have a/the simple way to do this.


RE: Creating a file Index by Ash_ on 04-20-2005 at 03:19 AM

do you mean like in PHP or something else?

if it's PHP go lookup readdir on php.net they have some good examples :)


RE: Creating a file Index by matty on 04-20-2005 at 03:21 AM

Want to make sure you don't have an index file of any type. And allow directory viewing. Are you using CPanel or what?


RE: Creating a file Index by Chris4 on 04-20-2005 at 03:27 AM

To get a directory like that, you need to delete the index.html page (or rename) it. Then it should show all the files in the folder.


RE: Creating a file Index by user13774 on 04-20-2005 at 08:18 AM

I though it depended on what server software your host uses? Because when I just surf to a folder with some files on my ISP's homepage space I get a 403 error.. (like this folder which contains some pictures: http://www.planet.nl/~blank454/other/)


RE: RE: Creating a file Index by Dempsey on 04-20-2005 at 10:31 AM

quote:
Originally posted by Markus
I though it depended on what server software your host uses? Because when I just surf to a folder with some files on my ISP's homepage space I get a 403 error.. (like this folder which contains some pictures: http://www.planet.nl/~blank454/other/)

in Apache servers, you can turn off directory listing, so it depends on that setting.  You can easily change it for each directory in cPanel
RE: Creating a file Index by Wabz on 04-20-2005 at 10:59 AM

I think all you have to do is type

Options and Indexes

in a text file save it as f.htaccess

upload it to the directory you want and rename it to .htaccess

[note you will have to change the name on upload as windows doesnt like no name files.]


RE: Creating a file Index by user13774 on 04-20-2005 at 01:37 PM

quote:
Originally posted by Dempsey
in Apache servers, you can turn off directory listing, so it depends on that setting.  You can easily change it for each directory in cPanel
My ISP's homepage space doesn't offer cPanel though... :dodgy:

quote:
Originally posted by Wabz
I think all you have to do is type

Options and Indexes

in a text file save it as f.htaccess

upload it to the directory you want and rename it to .htaccess

[note you will have to change the name on upload as windows doesnt like no name files.]
Doesn't work. Still get a 403 error. And as soon as I tried to open the specific folder, the .htaccess file has disappeared when I go to that folder again in FTP mode.
RE: Creating a file Index by MeEtc on 04-20-2005 at 01:40 PM

Which means your host doesn't allow .htaccess files
You could create your own index file, but you would end up editing it every time you change the dir's contents


RE: Creating a file Index by Ash_ on 04-20-2005 at 01:54 PM

quote:
Originally posted by MeEtc
Which means your host doesn't allow .htaccess files
You could create your own index file, but you would end up editing it every time you change the dir's contents


*hint* use PHP, use the scandir/readdir call.

you wouldnt have to change nothing.
RE: Creating a file Index by absorbation on 04-20-2005 at 02:50 PM

I use that just by linking to a folder e.g. on my site for downloads i link to the soundpacks folder /soundpacks instead of /soundpacks/all your base.plp

Sorry if that did'nt make scence


RE: Creating a file Index by TheGeek on 04-20-2005 at 02:58 PM

If you want a more beautiful solution you can try this script:
http://celerondude.com/index.php?a=s&id=6

I've tried it and i must say that i was impressed.


RE: Creating a file Index by user13774 on 04-20-2005 at 03:41 PM

quote:
Originally posted by Ash_
quote:
Originally posted by MeEtc
Which means your host doesn't allow .htaccess files
You could create your own index file, but you would end up editing it every time you change the dir's contents


*hint* use PHP, use the scandir/readdir call.

you wouldnt have to change nothing.
quote:
Originally posted by TheGeek
If you want a more beautiful solution you can try this script:
http://celerondude.com/index.php?a=s&id=6

I've tried it and i must say that i was impressed.
@ The Geek: very nice script

But for me it won't work cuz my ISP doesn't support php :dodgy:
RE: Creating a file Index by absorbation on 04-20-2005 at 03:53 PM

Very very good script i'm using it on my site, good work (Y)


RE: RE: Creating a file Index by TheGeek on 04-20-2005 at 04:29 PM

quote:
Originally posted by Markus
quote:
Originally posted by Ash_
quote:
Originally posted by MeEtc
Which means your host doesn't allow .htaccess files
You could create your own index file, but you would end up editing it every time you change the dir's contents


*hint* use PHP, use the scandir/readdir call.

you wouldnt have to change nothing.
quote:
Originally posted by TheGeek
If you want a more beautiful solution you can try this script:
http://celerondude.com/index.php?a=s&id=6

I've tried it and i must say that i was impressed.
@ The Geek: very nice script

But for me it won't work cuz my ISP doesn't support php :dodgy:

To bad, why don't you try www.100webspace.com? they're pretty good and they offer php.
RE: Creating a file Index by user13774 on 04-20-2005 at 07:57 PM

I don't really need a new webhost, I was just wondering :P. I'm not the creator of this thread :tongue:. Still.. thanks for your help!


RE: Creating a file Index by Chris4 on 04-20-2005 at 08:43 PM

The scripts pretty nice. But am I correct by saying if you delete the index.htm page, it shows the directory doesn't it?


RE: Creating a file Index by ShawnZ on 04-20-2005 at 09:05 PM

quote:
Originally posted by chris4
The scripts pretty nice. But am I correct by saying if you delete the index.htm page, it shows the directory doesn't it?


Only if directory listing is enabled.