Hello and welcome to our community! Is this your first visit?
Register
Enjoy an ad free experience by logging in. Not a member yet? Register.
Results 1 to 3 of 3
  1. #1
    New Coder
    Join Date
    Jun 2002
    Location
    Canada
    Posts
    53
    Thanks
    0
    Thanked 0 Times in 0 Posts

    INDEX OF page (ie. linking to a directory w/o index.htm)

    Hullo

    When you link to a directory, and there is no index.htm or index.html or home.htm (in other words, when there is no default page to load) the contents of the folder show up in a list.

    I was just curous if it were possible to create a page, index.htm, that would list out the files, just as linking to a directory w/o an index page would. In other words, I want to be able to recreate that INDEX OF page.

    And I'm hoping that whenever a file is added or removed from the directory, the page will be updated accordingly.

    Is that possible?
    Tombo out.

  • #2
    Senior Coder Spudhead's Avatar
    Join Date
    Jun 2002
    Location
    London, UK
    Posts
    1,856
    Thanks
    8
    Thanked 110 Times in 109 Posts
    It's entirely possible, using a server-side lanugage. ASP can, for example, access the server's directory structure using the FileSystemObject.

  • #3
    Regular Coder
    Join Date
    Jul 2002
    Location
    Raleigh, NC
    Posts
    484
    Thanks
    0
    Thanked 0 Times in 0 Posts
    here are the details for doing this in asp:

    http://www.codingforums.com/showthre...?threadid=8736
    -WebMark Art
    Programming is 80% thinking and 20% spelling


  •  

    Posting Permissions

    • You may not post new threads
    • You may not post replies
    • You may not post attachments
    • You may not edit your posts
    •