I have some docx file at server with some specific place and i just want to download them using php.but we can't redirect them at given places because there is actual client documents are stored
I tried to google but didn't get much appropriate solution for that
Current code :
function users_export_resume($id){
$filename=base_url()."user_info/".$id."/resume.docx";
header("Content-Type: application/force-download");
header("Content-Type: application/octet-stream");
header("Content-Type: application/download");;
header("Content-Disposition: attachment;filename=Resume.docx");
header("Content-Transfer-Encoding: binary ");
readfile($filepath);
}
Any suggestions ? is there anything wrong ? Please take me out Thanks in Advance