Problem of downloading doc. files
Posted: Sat Mar 31, 2007 6:28 am
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
Thank u,
Murali Krishna
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