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