Results 1 to 6 of 6
  1. #1

    Automatic listing of files

    I've tried to find a simple script that will generate a basic index file that lists all of the files within a directory. I have a bunch of PDF that I am always adding to and instead of seeing the 'plan' list of the files I would like to create a page that automatically lists all the PDF files in alphabetical order.

    There must be a simple script but I can't find any.

    Any suggestions?


  2. #2
    Join Date
    Jan 2003
    Los Angeles, CA USA
    Your host should be able to turn on Directory Listing.

    Some control panels even offer this feature for the client to control.
    Link On Us .com
    H-Sphere Windows & Linux Hosting - Since 1998
    One Wilshire Corridor, Los Angeles, Calif

  3. #3
    Join Date
    Oct 2002
    State of Disbelief
    Create a text file, call it ".htaccess" (without "quotes") and stick it in the document root. In the file, add this:
    Options +Indexes
    Having problems, or maybe questions about WHT? Head over to the help desk!

  4. #4
    I have the options +indexes 'on' but would like have an html page generated so I can add a title bar, pictures, etc.

    My site is created using a php template idea so I would love to have a script that just 'fills' in the blanks in the middle of my screen around my template design.

  5. #5

  6. #6
    Perfect - I was able to modify the code so I could get exactly what I want.


Posting Permissions

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