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 4 of 4

Thread: PHP Directory

  1. #1
    New to the CF scene
    Join Date
    Dec 2010
    Posts
    2
    Thanks
    0
    Thanked 0 Times in 0 Posts

    PHP Directory

    Hello, can someone please help me make this. I want a simple php directory script that lists files and folders. If a folder is clicked on then open that directory and if a file is clicked on it will download or if its a .txt or picture it will open in the browser. BUT I NEED IT TO LOOK EXACTLY LIKE THIS: http://test512.x10.mx/ which would be the default cpanel indexing but i use godaddy and i dont like there indexing page.

    Please help and whoever make it i will provide a subdomain on my website for you to host your stuff.

  • #2
    New Coder
    Join Date
    Oct 2009
    Posts
    78
    Thanks
    1
    Thanked 2 Times in 2 Posts
    You must/can use .htaccess for this.
    Google it and you will find the answer.

  • #3
    New to the CF scene
    Join Date
    Dec 2010
    Posts
    2
    Thanks
    0
    Thanked 0 Times in 0 Posts
    Quote Originally Posted by BinaryX View Post
    You must/can use .htaccess for this.
    Google it and you will find the answer.
    Yes i know but puts the standard apache index page. i want the one shown in the link in my first post.

  • #4
    Senior Coder djm0219's Avatar
    Join Date
    Aug 2003
    Location
    Wake Forest, North Carolina
    Posts
    1,301
    Thanks
    4
    Thanked 204 Times in 201 Posts
    The link you posted is the default when Apache is configured to show directory listings. Using .htaccess and a couple of files you may make directory listings look just about any way you would like. The link below is done with nothing but .htaccess and a couple of files that .htaccess uses. The same is true for the link that is shown on the page.

    http://pictures.homephotosnow.com/Stitched.Martin/
    Dave .... HostMonster for all of your hosting needs


  •  

    Posting Permissions

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