1. Computer problem? Tech Support Guy is completely free -- paid for by advertisers and donations. Click here to join today! If you're new to Tech Support Guy, we highly recommend that you visit our Guide for New Members.

Would I need a SSI?

Discussion in 'Web Design & Development' started by gamewolf, Oct 2, 2008.

Thread Status:
Not open for further replies.
Advertisement
  1. gamewolf

    gamewolf Thread Starter

    Joined:
    Nov 6, 2007
    Messages:
    192
    This is my situation. When someone loads the url http://www.mywebsite.com/music/file.wav, a page will come up with a custom music player, logo, ads, etc. Would this require a ssi? I don't want a dialogue to come up asking to download the file or the page be blank.

    Would it be the same thing for pictures and password-protected files?

    I am using Apache 2.2.9.
    Thanks.
     
  2. gamewolf

    gamewolf Thread Starter

    Joined:
    Nov 6, 2007
    Messages:
    192
  3. namenotfound

    namenotfound

    Joined:
    Apr 30, 2005
    Messages:
    3,012
    server-side includes (ssi) is used to include one file into another.
    useful for nav bars that stay the same on every page.

    Hopefully that answers your question. If the new page has elements on it that are shared with all the other pages, then ssi would be useful.
     
  4. gamewolf

    gamewolf Thread Starter

    Joined:
    Nov 6, 2007
    Messages:
    192
    Ok, so I would probably want ssi, but how do I get it to do what I described? If you've been to Sourceforge, you can get a direct link to a exe file, but there is also an html page included with it. How do I get it to do that?
     
  5. namenotfound

    namenotfound

    Joined:
    Apr 30, 2005
    Messages:
    3,012
  6. gamewolf

    gamewolf Thread Starter

    Joined:
    Nov 6, 2007
    Messages:
    192
  7. namenotfound

    namenotfound

    Joined:
    Apr 30, 2005
    Messages:
    3,012
    Although that might look like a direct link to the FILE, it's not. The url is designed to look like is though. The direct link to that file is http://s423.photobucket.com/albums/pp314/gamewolf80/UT32008-09-1217-46-36-28.flv which downloads when you click on it ;)

    Ok, now that I understand, I'll answer your question. In the url you posted, notice where it says ?action=view&current= The page is using php to get the video file and display it on the page. It's the same as just having any old webpage url and embedding the video.

    A simple php script for this might include IF/ELSE statements, a more complex script might use an SQL database (which I'm sure Photobucket is doing) to grab the file based on whatever the url is.

    You can also use .htaccess and Mod_Rewrite to turn direct file links into the link you posted (meaning the url looks like the direct file link, but it's using the ?action=view&current= part of the url behind the scenes)
     
  8. gamewolf

    gamewolf Thread Starter

    Joined:
    Nov 6, 2007
    Messages:
    192
    ok that makes sense. Ill look into that thanks.
     
  9. Sponsor

As Seen On
As Seen On...

Welcome to Tech Support Guy!

Are you looking for the solution to your computer problem? Join our site today to ask your question. This site is completely free -- paid for by advertisers and donations.

If you're not already familiar with forums, watch our Welcome Guide to get started.

Join over 733,556 other people just like you!

Loading...
Thread Status:
Not open for further replies.

Short URL to this thread: https://techguy.org/755611

  1. This site uses cookies to help personalise content, tailor your experience and to keep you logged in if you register.
    By continuing to use this site, you are consenting to our use of cookies.
    Dismiss Notice