using header() to rewrite filename in URL for dynamic pdf

后端 未结 5 1958
野的像风
野的像风 2020-12-03 06:56

I have a php script that generates a pdf report. When we go to save the pdf document, the filename that Acrobat suggests is report_pdf, since the php script is named report_

5条回答
  •  旧巷少年郎
    2020-12-03 07:14

    Did you try to remove spaces from file name using hyphens? So, I think its name must be like this; filename=July-Report.pdf

提交回复
热议问题