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
    Regular Coder
    Join Date
    Jun 2009
    Posts
    351
    Thanks
    75
    Thanked 0 Times in 0 Posts

    how to view files in a directory on a web server

    I remember you can put a certain file on your web folder that allows you view all the files in that folder and sub folder..

    does anyone know what i have to do?

    Thanks

  • #2
    New Coder
    Join Date
    May 2010
    Location
    Mexico
    Posts
    62
    Thanks
    1
    Thanked 0 Times in 0 Posts
    i think this is a server setting named directory listing... you should look for it in your server control panel

    hope it works!
    Lo bueno del cine es que durante dos horas los problemas son de otros.

  • #3
    New Coder
    Join Date
    Nov 2009
    Location
    Phoenix
    Posts
    17
    Thanks
    1
    Thanked 1 Time in 1 Post
    Are you looking for a script to allow you to view files in a directory or are you looking for a way to allow you to view files in the directories on your site using your browser?

    Look into the PHP readdir function if you want to write a script.

    PHP reddir manual

    If you want to enable anyone to view the files in a directory on your web site, look into the Apache directive Options Indexes.

    You can also use Option Indexes in an .htaccess file. I think that might be what you are looking for. If you use Options Indexes, anyone will be able to view the files in a directory.


  •  

    Posting Permissions

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