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 2 of 2
  1. #1
    New to the CF scene
    Join Date
    Apr 2011
    Posts
    5
    Thanks
    2
    Thanked 0 Times in 0 Posts

    setup simple file browsing

    Hello,

    Simple question. I would like to be able to browse a directory (like when you go to a directory without a index.html) however when someone clicks on a media file I would like it to open in my custom web player. Any Ideas? Is this possible?

    I have attempted to create a php file browsing system but it is becoming such a pain in the a$$. Ideally I would like to be able to create and index.html with a css so its not just plain white background, but I am looking to keep the file tree browse-able. Hopefully most of you know what I am trying to say. I feel like I am tripping over my tongue quite a bit here.

    Thanks
    Jake

  • #2
    New Coder
    Join Date
    Apr 2011
    Posts
    36
    Thanks
    0
    Thanked 3 Times in 3 Posts
    I'm far from an expert but without some way to capture the user before they access the media file there won't be a way to redirect them. Using the PHP filesystem functions you should be able to write an index that will give you a directory listing of whatever directory you specify, then when the user clicks on the link to the media file redirect them to the page with your player.


  •  

    Posting Permissions

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