AddType application/octet-stream .pdf
header('Content-Type: application/octet-stream');
// Return the desired file, e.g. echo file_get_contents(...).
// Make protection from burglary!
<a href="http://example.com/files/myfile.pdf" target="_blank">Download</a>
Content-Disposition: attachment; filename="8431.jpg"
Find more questions by tags HTML