0 Replies Latest reply on Sep 3, 2006 12:44 AM by Hawkie1234

    No Cache with PHP & FLV

    Hawkie1234
      I used the following php and called it with netsream.play() to prevent cacheing.

      <?php

      function nocache($filename){
      $ctype="application/octet-stream";
      header("Expires: 0");
      // HTTP/1.1
      header("Cache-Control: no-store, no-cache, must-revalidate");
      header("Cache-Control: post-check=0, pre-check=0", false);
      // HTTP/1.0
      header("Pragma: no-cache");
      header("Content-Type: $ctype");
      readfile($filename);
      }

      $fname = $_GET['f'];
      nocache($fname);
      ?>

      This does work, but it would appear that the whole FLV needs to get loaded first, before palying. Is it possible to make it really stream.