moj kod:
Kód:
if(!isset($_GET['video'])) {
echo "Video nie je k dispozícii. Skúste neskôr.";
} else {
header("Content-Disposition: attachment; filename=".$_GET['video']);
header('Content-Type: application/force-download');
header('Content-Type: application/octet-stream');
header('Content-Type: application/download');
header("Content-Length: ".filesize(VIDEOS.$_GET['video']));
echo file_get_contents(VIDEOS.$_GET['video']);
}
echo "<body>\n";
echo "<script type='text/javascript'>\n";
echo "setTimeout('self.close();',5000);\n";
echo "</script>\n";
echo "</body>\n";
mozno pomoze, keby si potreboval
ale potom som zistil, ze sa to da celkom elegantne riesit aj cez .htaccess