Hello,
I use the following code to download file, it seems garbled. ie. .doc file can't open with ms-word.
$fh = fopen("$dirname/$file","rb"); header("Content-type: \"\""); // header("Content-length: $size"); header("Content-Transfer-Encoding: 8bit"); header("Content-Disposition: attachement; filename=$file"); // header("Content-Description: PHP Generated Data"); fpassthru($fh);
Thanks for your help. Marcel
Hi Marcel,
unfortunately I don't have any idea regarding your problem, but I have the same.
So my question, if you have got a solution in the meantime, please would you forward it to me?
Thank you in advance and best regards, Frank