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 IamaSherpa on being selected by the Tek-Tips community for having the most helpful posts in the forums last week. Way to Go!

Creating A Download Page

Status
Not open for further replies.

ChuckG

MIS
Feb 28, 2001
211
US
I've seen it on web sites in the past but never looked into how it works.

I need to make a page that simply display's the current files/folders contained in a folder so that a user can navigate it and download/view files contained in the directory.

The issue is that these files are going to be copied via our LAN into the directory so this "listing" page needs to by dynamic rather than a static page and look at what files/folders are available in that directory at the time the page is viewed.

Thanks for any help.
 
The easiest way to do this, is to link to the folder/directory that the files are being stored in, and make sure that visitors are allowed to browse directories - this will list all the files in the folder, along with file size, date modified etc.

Mind tho', that this is not really an ideal solution from a security point of view (particularly allowing users to browse directories.

Depending on the setup (web-server/environment) there are a number of scripting languages that should be able to deliver a dynamic html page:
* Perl
* ASP
* PHP
* ColdFusion
* + many more

Perl is fairly powerful and simple to learn (and free :) ) and is probably a good choice.

If you're running Windows/IIS then ASP is almost guarateed to be available.

ColdFusion is very easy to use, but very expensive, so probably not a good idea unless it is already installed.
 
That's what the problem was, I just found it last night.

Even though in Frontpage I had turned Browse this directory to on, IIS didn't have it on. Once I turned that on in IIS it worked fine.

Thanks for the help. Now I just have to get this VBScript/ASP page I'm writing finished and figure out a DSN/ODBC problem lol

 
Status
Not open for further replies.

Part and Inventory Search

Sponsor

Back
Top