用于批处理入门的fpdf缓存

时间:2014-03-31 13:27:55

标签: php caching output fpdf

我希望在服务器上使用fpdf(twpdf)从SQL创建票证。 问题是,所有故障单都有来自刻度线的数据。

$pdfdoc = $twpdf->Output('./rechnung/Eintrittskarte_' . $arrDat['rechnungsnummer']."_".time().".pdf", "S");

header('Cache-Control: private, max-age=0, must-revalidate');
header('Cache-Control: max-age=0');
header("Cache-Control: private",false); // required for certain browsers 
header("Cache-Control: no-cache, must-revalidate"); // HTTP/1.1
header("Expires: Sat, 26 Jul 1997 05:00:00 GMT");   // any date in the past
header('Content-Type: application/pdf');
header('Content-Length: '.strlen($pdfdoc));
header('Content-Disposition: inline; filename="doc.pdf"');
header('Pragma: public');
ini_set('zlib.output_compression','0');

在“输出”之后,电子邮件附在电子邮件中,与下一张票证相同。

0 个答案:

没有答案