You are here: Re: How to display files in a directory? « HTML « IT news, forums, messages
Re: How to display files in a directory?

Posted by Alan J. Flavell on 11/22/52 11:37

On Tue, 17 Jan 2006, David Dorward wrote:

> You need a process running on the server to generate an index page.
> Most servers will generate directory indexes automatically (although
> the feature can be turned off),

In both senses, yes - the page owner can turn it off to prevent
readers from trawling to see what's in the directory, which can be a
useful thing to do sometimes; and the server admin could turn it off
to prevent the content owner from using the feature, although I can't
imagine that being particularly useful - it's not as if directory
indexing consumes much in the way of resources.

> but rolling your own in (for
> instance) Perl will give you more control over the appearance.

Agreed, but I'm not sure I'd recommend it casually - there are too
many ways of digging oneself into a fairly deep hole...

> The specifics depend on the capabilities of your webserver.

Most servers, in practice, are Apache-based, and Apache can do some
neat things in its directory indexing feature. I would recommend
looking there first. The mod_autoindex documentation should get one
started.

h t h

 

Navigation:

[Reply to this message]


Удаленная работа для программистов  •  Как заработать на Google AdSense  •  England, UK  •  статьи на английском  •  PHP MySQL CMS Apache Oscommerce  •  Online Business Knowledge Base  •  DVD MP3 AVI MP4 players codecs conversion help
Home  •  Search  •  Site Map  •  Set as Homepage  •  Add to Favourites

Copyright © 2005-2006 Powered by Custom PHP Programming

Сайт изготовлен в Студии Валентина Петручека
изготовление и поддержка веб-сайтов, разработка программного обеспечения, поисковая оптимизация