Tek-Tips is the largest IT community on the Internet today!

Members share and learn making Tek-Tips Forums the best source of peer-reviewed technical information on the Internet!

  • Congratulations Mike Lewis on being selected by the Tek-Tips community for having the most helpful posts in the forums last week. Way to Go!

How to create an Index Listing of a web site for storage

Status
Not open for further replies.

attrofy

IS-IT--Management
Jan 10, 2002
694
US
This should be a relatively simple request, but I am coming up negative on search results. I am looking for an easy (automatic) way to create a directory listing of a web site that is only used as a file server. This way, I cn get a dynamic of listing of all files I have loaded on that site. This should just give a basic listing (like in an FTP client) of file name, attibutes, etc. If the file was linked to dispoay the file - that would be a nice touch, but not really necassary. Basically this is just a collection of .gif's, .jpg's and files that I upload to an internet host to use for news articles, transporting files, linking to images within forums and auction pages etc.

I used to do rather extensive web development in 1997, and I seem to recall that if an index page was created incorectly (or with the wrong extension - or something) this is the result that would be produced. Basically just a text page that says index listing of mypage.com - then list all the files and their attributes.

TIA
Russell
 
If you delete any index.htm or index.html files from the root directory, by default when you call up the domain, it will display a hyperlinked file list with attributes.

Newposter
"Good judgment comes from experience. Experience comes from bad judgment."
 
But only on webservers where directory listing isn't forbidden. Many, many hosts deny directory listings because they can provide useful hacking information.
 
There are ways to do this with server languages, but the way depends on the lanaguage.

If you don't have access to much but can use SSI, then a simple way would be the following:

On Unix,
<pre>
<!--#exec cmd=&quot;ls&quot; -->
</pre>

or, on Windows

<pre>
<!--#exec cmd=&quot;dir&quot; -->
</pre>

Hope this helps

Wullie


The pessimist complains about the wind. The optimist expects it to change.
The leader adjusts the sails. - John Maxwell
 
I appreciate all the reposnes, but I guess my ISP has directory listings forbiden. I tried a few different ways, but nothing happening. THanks anyway for the input, I'll have to remember that if I get a new web host.
 
Status
Not open for further replies.

Part and Inventory Search

Sponsor

Back
Top