title: download flash video using php readfile
body: <p>i am trying to download flv video to the flash player using PHP's readfile() function, using this i can hide the location of the file. i tried these codes but jw player don't work, file can downloaded separately but it don't work with the player.</p>
  
  <pre><code>&lt;?php
  
  $file = '/vid/myvideo.flv';
  header('Content-Description: File Transfer');
  header('Content-Type: video/x-flv');
  header("Cache-Control: no-cache");
  header('Content-Disposition: attachment; filename=myvideo.flv' );
  header("Pragma: no-cache");
  header('Content-length: '.filesize($file));
  
  flush();
  @readfile($file) or die("File not found.");
  ?&gt;
  </code></pre>
  
  <p>when i transfer .swf it works file, but path of the file is visible.</p>
  
  <p>is it possible to download flv file to flash player using readfile() function.</p>