I have tried all the headers. With and without content-length.
The problem is that the dowload craps out around halfway. But only most of the time.
Sometimes it works just fine.
Server resource usage is trivial. All config files are fine. I dont run php script while its going.
Has anyone seen this before? Is it not even my fault? Why sometimes?
$file = "http://domain.com/files/".$item_number.".mov";
header( 'Pragma: no-cache' );
header( 'Cache-Control: must-revalidate, post-check=0, pre-check=0' );
header( 'Content-Description: File Download' );
header( 'Content-Type: application/force-download');
//header ('Content-Type: video/quicktime');//doesnt seem to download at all here
header( 'Content-Length: '.filesize( $file ) );
header( 'Content-Disposition: attachment; filename="'.basename( $file ).'"' );
header( 'Content-Transfer-Encoding: binary' );
readfile( $file );
exit();
Thank you, Sorry it's my first time.