Force Download Without Spending Bandwith

Discussion in 'PHP' started by SNaRe, Jun 26, 2009.

  1. #1
    I want to force my users to download video. But when i link to video and enter to that url it automaticly streams video. But i want them to save it to their computer.
    There is a way for this. headers & readfile but this need bandwith which is not good for me.

    If you have any idea solution maybe javascript or some other solution for this let me know please
     
    SNaRe, Jun 26, 2009 IP
  2. jestep

    jestep Prominent Member

    Messages:
    3,659
    Likes Received:
    215
    Best Answers:
    19
    Trophy Points:
    330
    #2
    You should be able to embed a video from another website. When the user clicks on it, it would be streamed from the server it is being hosted on and not your own server.
     
    jestep, Jun 26, 2009 IP
  3. SNaRe

    SNaRe Well-Known Member

    Messages:
    1,132
    Likes Received:
    32
    Best Answers:
    0
    Trophy Points:
    165
    #3
    I'm grabbing from facebook. When i click on it , it streams in browser it's not embeded or something directly mp4 format
     
    SNaRe, Jun 26, 2009 IP
  4. buchin

    buchin Active Member

    Messages:
    156
    Likes Received:
    1
    Best Answers:
    0
    Trophy Points:
    53
    #4
    You can use PHP to do that.. By sending appropiate header() function so the content will be downloaded instead on streaming
     
    buchin, Jun 26, 2009 IP
  5. SNaRe

    SNaRe Well-Known Member

    Messages:
    1,132
    Likes Received:
    32
    Best Answers:
    0
    Trophy Points:
    165
    #5
    I think you didn't read my post.
    I already did it. But now problem is when i send url with header it automaticly starts to stream video.

     
    SNaRe, Jun 26, 2009 IP