Please help - Problem with streaming a file in to my website

Discussion in 'PHP' started by CosmaWorks, Mar 6, 2013.

  1. #1
    Hello all,

    I have a VPS in DreamHost, i have a site script that streams video files directly from Mega hosting service.

    Its just put the URL and starts sreaming the video file in the VLC web plugin, all works okey... the problem comes when passeds 8 minutes after starts my videos, the conection resets, and video stopped.

    I test on a friends shared hosting and my surprise is working fine, and streaming the full video without problems...

    I take a look at php.ini and change the timeout, and other stuff and never work, this is take crazy, i have a vps only for that and i need fix.

    Any idea?

    Thank
     
    CosmaWorks, Mar 6, 2013 IP
  2. bluebenz

    bluebenz Well-Known Member

    Messages:
    876
    Likes Received:
    9
    Best Answers:
    2
    Trophy Points:
    138
    #2
    Is it possible for dreamhost to reset the connection ?
    since you compare your page on other server and it work, contact dreamhost support maybe the solution..
     
    bluebenz, Mar 6, 2013 IP
  3. Einheijar

    Einheijar Well-Known Member

    Messages:
    539
    Likes Received:
    13
    Best Answers:
    3
    Trophy Points:
    165
    #3
    have you tried
    
    set_time_limit(0);
    
    PHP:
     
    Einheijar, Mar 6, 2013 IP
  4. CosmaWorks

    CosmaWorks Active Member

    Messages:
    205
    Likes Received:
    0
    Best Answers:
    0
    Trophy Points:
    53
    #4
    Yes, in my script i set on header, and dont work :(
     
    CosmaWorks, Mar 6, 2013 IP
  5. Einheijar

    Einheijar Well-Known Member

    Messages:
    539
    Likes Received:
    13
    Best Answers:
    3
    Trophy Points:
    165
    #5
    Then there's probably a high chance that mega prematurely ends the stream to your script.
     
    Einheijar, Mar 6, 2013 IP
  6. StevenKidman045

    StevenKidman045 Peon

    Messages:
    5
    Likes Received:
    0
    Best Answers:
    0
    Trophy Points:
    1
    #6
    check internet connection. it may be disconnect.
     
    StevenKidman045, Mar 6, 2013 IP