Teraz jest tak:
<?php
$plik = $_GET['plik'];
header('Content-Type: application/force-download'); header('Content-Disposition: attachment; filename="'.$rest.'.mp3'); ?>
Lecz pliki, które ważą tak na prawdę ok. 3MB według niego jest to ok. 400kb i próbując otworzyć ten plik jednym słowem nie da się
sciagnij.php
<?php
$plik = $_GET['plik'];
header("Cache-Control: no-store, 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="'.$rest.'.mp3'); header("Content-Transfer-Encoding: binary"); $pliczek = fopen(''.$plik.'.mp3', 'r'); {
}
fclode($pliczek);
?>
I podczas ściągania Otrzymuje komunikat: Szacowany czas nieznany i waga pliku rośnie