This is a strange question I KNOW, but here is my situation...
I am displaying PDFs in a browser, pulling them from a mySQL database (this is a very secure site). This is the code that displays the PDF in the browser:
This works fine when used in Internet Explorer or any browser with an Acrobat plug-in installed, but for people like Mozilla users, they are prompted with how they would like to treat the file (in my case, I use Mozilla and am asked to open with AcroExch).
So the problem is that users without a browser plug-in for Acrobat won't be able to view these, since it saves to their hard drive as a php file.
Any ideas?? Help is very much needed and would be greatly appreciated. Thanks!
I am displaying PDFs in a browser, pulling them from a mySQL database (this is a very secure site). This is the code that displays the PDF in the browser:
Code:
header("Content-type: application/pdf");
print(base64_decode($row["pdfFile"]));
$row["pdfFile"] is a BLOB field in the mySQL db.
This works fine when used in Internet Explorer or any browser with an Acrobat plug-in installed, but for people like Mozilla users, they are prompted with how they would like to treat the file (in my case, I use Mozilla and am asked to open with AcroExch).
So the problem is that users without a browser plug-in for Acrobat won't be able to view these, since it saves to their hard drive as a php file.
Any ideas?? Help is very much needed and would be greatly appreciated. Thanks!