TCPDF Save file to folder?

后端 未结 11 2101
耶瑟儿~
耶瑟儿~ 2020-12-13 07:05

I\'m using TCPDF to print a receipt and then send it to customer with phpMailer, but I have a problem:

I have no idea how to save the file into a pdf.

11条回答
  •  刺人心
    刺人心 (楼主)
    2020-12-13 07:21

    TCPDF uses fopen() to save files. Any paths passed to TCPDF's Output() function should thus be an absolute path.

    If you would like to save to a relative path, use e.g. the __DIR__ global constant (see this answer).

提交回复
热议问题