title: How to redirect a live data stream adding to it another header and returning it on demand? (PHP)
body: <p>I have a url like <a href="http://localhost:8020/stream.flv" rel="nofollow noreferrer">http://localhost:8020/stream.flv</a></p>
  
  <p>On request to my php sctipt I want to return (be something like a proxy) all data I can get from that URL (so I mean my php code should get data from that url and give it to user) and my header and my beginning of file.</p>
  
  <p>So I have my header and some data I want to write in the beginning of response like </p>
  
  <pre><code># content headers
          header("Content-Type: video/x-flv");        
          # FLV file format header
          if($seekPos != 0) 
          {
          print('FLV');
          print(pack('C', 1));
          print(pack('C', 1));
          print(pack('N', 9));
          print(pack('N', 9));
      }
  </code></pre>
  
  <p>How to do such thing?</p>