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 2007
    Location
    Maryland, USA
    Posts
    165
    Thanks
    12
    Thanked 0 Times in 0 Posts

    How to make file structure visible

    Hello,

    I was wondering how to make a web directory's file structure visible to the public. I've seen this done before... I just need to make one folder's contents "browsable."

    I've looked through cPanel and can't find anything relating to this... is there perhaps some line that I can place in the directory's php.ini file?

    Thanks

  • #2
    Supreme Master coder! abduraooft's Avatar
    Join Date
    Mar 2007
    Location
    N/A
    Posts
    14,863
    Thanks
    160
    Thanked 2,224 Times in 2,211 Posts
    Have a try by putting an .htaccess file in your root directory having a content Options +Indexes in it.
    (assuming you are using apache)
    Last edited by abduraooft; 05-07-2008 at 02:40 PM.
    The Dream is not what you see in sleep; Dream is the thing which doesn't let you sleep. --(Dr. APJ. Abdul Kalam)

  • #3
    Senior Coder
    Join Date
    Jan 2005
    Location
    Memphis, TN
    Posts
    1,788
    Thanks
    8
    Thanked 131 Times in 129 Posts
    you could also give a go with php file tree
    you can specify a folder like
    Code:
    <?php echo php_file_tree("myFolder", ...
    instead of their example of document root.

    of course you need to have php on your server for that one.
    Stop making things so hard on yourself.
    i is tugbucket :: help raise tugburg :: Whitehaven Kiwanis


  •  

    Posting Permissions

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