Find centralized, trusted content and collaborate around the technologies you use most.
Teams
Q&A for work
Connect and share knowledge within a single location that is structured and easy to search.
我正在构建一个简单的票务系统,它创建一个动态生成的 .pdf 文件并将其作为附件通过电子邮件发送。现在我正在使用静态 pdf 文件进行测试,但我注意到 tcpdf 删除了服务器上的文件。
1/我怎样才能防止这种情况并在服务器上保留一份副本?
问候
尝试以下代码,在 TCPDF 输出函数中使用“F”作为第二个参数,并指定在服务器上存储文件的路径
$this->pdf->Output('/path/example_001.pdf', 'F');