I try to offer a pdf-file-download, handeled in dwhandler.php. All this is supposed to do is open the pdf-file or start a download of it. I tried:
<?php
header("Content-Description: File Transfer");
header("Content-Type: application/octet-stream");
header("Content-Disposition: attachment; filename='Paper.pdf'");
header("Cache-Control: must-revalidate");
readfile("Paper.pdf");
exit;
?>
I also tried some other headers, but none worked.
The browser keeps opening the file directly in some weird coding. Here is a pic of the first few lines: http://www.directupload.net/file/d/3865/h8waniq9_jpg.htm
Has anybody an idea why this is happening? I have no idea what is left to try...
Thank you very much!