Page 1 of 1

Problem of downloading doc. files

Posted: Sat Mar 31, 2007 6:28 am
by B.Murali Krishna
Hello Friends,

I have a problem with downloading doc. files, after downloading the file get currepted and not showing proper data,

i have written header like this

Code: Select all

header("Content-Length: " . filesize($file_path));
				header('Content-type: '.$type);
                                header("Content-disposition: attachment; filename=".$file_name);
				@readfile($file_path);

Thank u,
Murali Krishna

Posted: Sat Mar 31, 2007 7:24 am
by feyd
Read through the advice given in the following thread. If, after following all that advice, you still can't find the culprit post back with more details.

viewtopic.php?t=64901&highlight=extraneous