I currently use php on my site, to download files from a directory that is not available via http.
this is my download script, called by:
http://blah.com/php/download.php?file=file.mpg
<?php
$path = '/home/username/downloads/';
$sendme = $path.$file;
$filename = substr (strrchr ($file, "/"), 1);
header("Content-Type: application/download\n");
header("Content-Disposition: attachment; filename=$filename");
$fn=fopen($sendme, "r");
fpassthru($fn);
?>
this works great when i want to download a files. but i need to stream .asf files.
i think i just need the correct header, does anyone know what it is?
i've tried these:
header ('Content-type: video/x-ms-asf');
header( "Content-type: application/octet-stream" );
any help would be greatly appreciated.
jon.