View Single Post
Old 2008-05-06, 07:02 PM   #2
cd34
a.k.a. Sparky
 
cd34's Avatar
 
Join Date: Sep 2004
Location: West Palm Beach, FL, USA
Posts: 2,396
I believe to do this you need to alter the content type of the file being served which requires a handler of sorts to do this which can then be hidden with an .htaccess. It will use more cpu than letting apache serve the file.

Code:
<?php
  header("Content-Type: video/x-ms-wmv");
  header('Content-Disposition: attachment; filename="test.wmv"');
  $file=fopen("test.wmv","rb");
  fpassthru($file);
  close($file);
?>
properly wrapped with a mod_rewrite, you could have it automatically parse and hand out files. Let me know and I can come up with something a little closer to what you want.
__________________
SnapReplay.com a different way to share photos - iPhone & Android
cd34 is offline   Reply With Quote