[PHP] Download with header() - file corrupted

2005-03-02 Thread Werner Jäger
I try to download a file wit follow code: $len = filesize($file); $filename = basename($file); 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

Re: [PHP] Download with header() - file corrupted

2005-03-02 Thread Richard Lynch
Werner Jäger wrote: I try to download a file wit follow code: $len = filesize($file); $filename = basename($file); header(Pragma: public); header(Expires: 0); header(Cache-Control: must-revalidate, post-check=0, pre-check=0); header(Cache-Control: public); Is it