Code: Alles auswählen
if (file_exists($url)) {
header("Pragma: no-cache");
header("Expires: 0");
header("Last-Modified: ".gmdate("D, d M Y H:i:s")." GMT");
header("Cache-Control: must-revalidate, post-check=0, pre-check=0");
header("Content-Type: application/force-download");
header("Content-Type: application/octet-stream");
header("Content-Type: application/download");
header("Content-Disposition: attachment; filename=".basename($url).";");
header("Content-Transfer-Encoding: binary");
header("Accept-Ranges: bytes");
header("Content-Length: ".filesize($url));
$datei = fopen($url, "r");
fpassthru($datei);
fclose($datei);
}
}
?>