Hi i m using the following code to download a pdf file
header(‘Content-type: application/pdf’);
header(‘Content-Disposition: attachment; filename=“download.pdf”’);
readfile(“mages/books/$fl”);
Where $fl is a vraible that store my original pdf file name
when i download file , it do it but when i open that file aDOBE gives error it is corrupted or changed…
Please help