header("Content-disposition: attachment; filename=\"".$title.".pdf\"");
header("Content-type: application/pdf");

readfile(realpath('.')."/sites/default/files/books/".$book_pdf);

exit();

Advertisements