Php download script

apps

#1

I’m using for a while this php script to download files. Since few days, the download just stops at about 90 meg. The file is about 950MB. Any idea what I’m missing ?

[php]
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: application/force-download”);
header(“Content-Disposition: attachment; filename=”$file_name"");
header(“Content-Transfer-Encoding: binary”);
header("Content-Length: " . filesize($file_path));

@readfile($file_path);

[/php]

Thanks.


#2

See: http://discussion.dreamhost.com/thread-127481.html. (That thread was about download scripts under Django, but the same principle applies to PHP.)