Referring to a folder of files that changes regularly

A

AJ

My webspace provider doesn't support the automatic listing of files when an
index.html is not available. Therefore does anyone know a way in which I
can write the index.html for
that directory that lists all the files dynamically i.e. so I can change the
files via ftp without having to change the html that points to them?
 
B

brucie

My webspace provider doesn't support the automatic listing of files when an
index.html is not available.

(assumes apache) stick the below in a .htaccess file[1] for the
directory you want the directives to apply to. child directories inherit
the directives so if you stick it in your root the directives will apply
to all of your site.

#allow directory listing
Options +Indexes

[1] a .htaccess file is a plain text file named as shown. if you create
the file with notepad save the file with quotes to prevent notepad from
adding a .txt extension i.e: ".htaccess"

a hash '#' indicates a comment line. remove/change/add them if you wish.
 
W

Wipkip

AJ said:
My webspace provider doesn't support the automatic listing of files
when an index.html is not available. Therefore does anyone know a
way in which I can write the index.html for
that directory that lists all the files dynamically i.e. so I can
change the files via ftp without having to change the html that
points to them?

This works ok too.
http://tinyurl.com/x0xl
 
A

AJ

Brucie - works perfectly - what a star - thanks!

brucie said:
My webspace provider doesn't support the automatic listing of files when an
index.html is not available.

(assumes apache) stick the below in a .htaccess file[1] for the
directory you want the directives to apply to. child directories inherit
the directives so if you stick it in your root the directives will apply
to all of your site.

#allow directory listing
Options +Indexes

[1] a .htaccess file is a plain text file named as shown. if you create
the file with notepad save the file with quotes to prevent notepad from
adding a .txt extension i.e: ".htaccess"

a hash '#' indicates a comment line. remove/change/add them if you wish.
 
W

Wipkip

Leif said:
What's this <span class="code">? You don't seem to be styling it, and
<code> would probably be right.

I guess the css file might have helped. Oh well make your own or change the code.
 

Ask a Question

Want to reply to this thread or ask your own question?

You'll need to choose a username for the site, which only take a couple of moments. After that, you can post your question and our members will help you out.

Ask a Question

Members online

No members online now.

Forum statistics

Threads
473,744
Messages
2,569,484
Members
44,903
Latest member
orderPeak8CBDGummies

Latest Threads

Top