How do i limit bandwidth using php?

Discussion in 'PHP' started by rudeturk, Aug 31, 2008.

  1. #1
    I need to limit bandwidth speed output from a download script i made, does anyone have examples using php?

    Also just an extra question you dont need to answer this one, how much bandwidth does a 700mb divx file need for streaming a second in average for one user?
     
    rudeturk, Aug 31, 2008 IP
  2. JAY6390

    JAY6390 Peon

    Messages:
    918
    Likes Received:
    31
    Best Answers:
    0
    Trophy Points:
    0
    #2
    How to limit bandwidth:
    bytes.com/forum/thread2546.html

    If you want to figure out the bandwidth per second, then you need to get the length of an average 700MB film (in seconds), and divide 700 by that
     
    JAY6390, Aug 31, 2008 IP
  3. matthewrobertbell

    matthewrobertbell Peon

    Messages:
    781
    Likes Received:
    35
    Best Answers:
    0
    Trophy Points:
    0
    #3
    Probably better to use usleep, rather than sleep, it will give you more control.
     
    matthewrobertbell, Aug 31, 2008 IP