Jest tak:
Kod
$rozmiar=filesize("/var/virtuals/mag-loop.net/download/" . $Path . "/" . $File);
header("Cache-control: private"); // to podobno specjalnie dla IE
header("Content-Type: " . $MIME);
header("Content-Disposition: attachment; filename=" . $File);
header("Content-Length: $rozmiar");
header("Content-Transfer-Encoding: binary");
header("Connection: Close");
readfile("http://www.mag-loop.net/download/" . $Path . "/" . $File);
header("Cache-control: private"); // to podobno specjalnie dla IE
header("Content-Type: " . $MIME);
header("Content-Disposition: attachment; filename=" . $File);
header("Content-Length: $rozmiar");
header("Content-Transfer-Encoding: binary");
header("Connection: Close");
readfile("http://www.mag-loop.net/download/" . $Path . "/" . $File);
a wywoływane jest tak:
http://www.mag-loop.net/html.polish/roznos...eo/mpg&FileNr=1
i znajduje się tu:
http://www.mag-loop.net/html.polish/roznos...i.php?Sub=Video
i teraz tak ... jesli plik jest krotki dziala idealnie (w innych dzialach niz filmy) a jesli plik jest dlugi to wysyla sie tylko okolo 25mb i koniec ... ma ktos pomysl dlaczego?