Should be:
header('Content-disposition: attachment;filename="July Report.pdf"');
Seva Alekseyev
2010-01-06 20:31:33
Should be:
header('Content-disposition: attachment;filename="July Report.pdf"');
Try:
header('Content-Disposition: attachment; filename="July Report.pdf"');
or
header('Content-Disposition: inline; filename="July Report.pdf"');
Another option would be to use the $_SERVER['PATH_INFO']
to pass your "July Report.pdf" - an example link might be:
<a href="report_pdf.php/July%20Report.pdf?month=07">
That file should default to saving as "July Report.pdf" - and should behave exactly like your old php script did, just change the code that produces the link to the pdf.
Also take a look at this question
if you also want to rename the uri.