PDA

View Full Version : Viewing a server directory within a webpage?


justind
October 8th, 2007, 06:32 PM
Is there a way that I can view a server directory (/videos) within a webpage and have it automatically and new files and take away deleted ones? Basically instead of just having the link point to /videos I want it to point to videos.html and then I can use the look of my site.

I want this:

http://24.131.143.29/videos/

on this page
http://24.131.143.29/videos.html

Buzz
October 8th, 2007, 07:19 PM
To list a directory contents you need to use server side scripting - either php or asp. What you want to do can be done with either scripting language but it can not be done with just html.

If you search Google for "List Directory with PHP" or "List Directory with ASP" I'm sure you'll find a few tutorials.

justind
October 8th, 2007, 08:20 PM
I will be running it on a widows server 2k3 machine so would it be best i go with asp? I have been looking around and found a decent asp tutorial site.

justind
October 8th, 2007, 08:32 PM
What is the difference between the different asp.nets? like 2.0 and such.

justind
October 9th, 2007, 03:58 AM
Ok I got a script for displaying a directory but when I try to add it to my page with the web component thing it doesn't show up but if I navigate to the script page i made it works great it is just not inside my template.