Creating a file Index |
Author: |
Message: |
Joe
Senior Member
Posts: 950 Reputation: 30
36 / /
Joined: Mar 2004
|
O.P. Creating a file Index
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.
|
|
04-20-2005 03:10 AM |
|
|
Ash_
Senior Member
Posts: 638 Reputation: 31
35 / / –
Joined: Aug 2004
|
RE: Creating a file Index
do you mean like in PHP or something else?
if it's PHP go lookup readdir on php.net they have some good examples
|
|
04-20-2005 03:19 AM |
|
|
matty
Scripting Guru
Posts: 8336 Reputation: 109
39 / /
Joined: Dec 2002
Status: Away
|
RE: Creating a file Index
Want to make sure you don't have an index file of any type. And allow directory viewing. Are you using CPanel or what?
|
|
04-20-2005 03:21 AM |
|
|
Chris4
Elite Member
Posts: 4461 Reputation: 84
33 / /
Joined: Dec 2004
|
RE: Creating a file Index
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.
|
|
04-20-2005 03:27 AM |
|
|
user13774
Disabled Account
Posts: 1119
Joined: Apr 2003
Status: Away
|
RE: Creating a file Index
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/)
|
|
04-20-2005 08:18 AM |
|
|
Dempsey
Scripting Contest Winner
http://AdamDempsey.net
Posts: 2395 Reputation: 53
38 / /
Joined: Jul 2003
|
RE: RE: Creating a file Index
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
|
|
04-20-2005 10:31 AM |
|
|
Wabz
Elite Member
Its Groovy Baby!
Posts: 3459 Reputation: 29
39 / /
Joined: Jan 2003
|
RE: Creating a file Index
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.]
Mess.be Forum Moderator
Messenger Plus ex-IRC Network Admin
Gimme a Rep!
|
|
04-20-2005 10:59 AM |
|
|
user13774
Disabled Account
Posts: 1119
Joined: Apr 2003
Status: Away
|
RE: Creating a file Index
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...
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.
|
|
04-20-2005 01:37 PM |
|
|
MeEtc
Patchou's look-alike
In the Shadow Gallery once again
Posts: 2200 Reputation: 60
38 / /
Joined: Nov 2004
Status: Away
|
RE: Creating a file Index
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
I cannot hear you. There is a banana in my ear.
|
|
04-20-2005 01:40 PM |
|
|
Ash_
Senior Member
Posts: 638 Reputation: 31
35 / / –
Joined: Aug 2004
|
RE: Creating a file Index
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.
|
|
04-20-2005 01:54 PM |
|
|
Pages: (2):
« First
[ 1 ]
2
»
Last »
|
|