<?php

// Path to the file
$path = 'http://dl.my-film.me/Movie/BluRay%20720p/100.Meters.2016.720p.Tiny-%5BMy-Film%5D.mkv';

// This is based on file type of $path, but not always needed    
$mm_type = "application/octet-stream";

//Set headers
header("Pragma: public");
header("Expires: 0");
header("Cache-Control: must-revalidate, post-check=0, pre-check=0");
header("Cache-Control: public");
header("Content-Description: File Transfer");
header("Content-Type: " . $mm_type);
header("Content-Length: " .(string)(filesize($path)) );
header('Content-Disposition: attachment; filename="'.basename($path).'"');
header("Content-Transfer-Encoding: binary\n");

// Outputs the content of the file
readfile($path); 

exit();


?>
