Warning: file_get_contents(/data/phpspider/zhask/data//catemap/1/php/260.json): failed to open stream: No such file or directory in /data/phpspider/zhask/libs/function.php on line 167

Warning: Invalid argument supplied for foreach() in /data/phpspider/zhask/libs/tag.function.php on line 1116

Notice: Undefined index: in /data/phpspider/zhask/libs/function.php on line 180

Warning: array_chunk() expects parameter 1 to be array, null given in /data/phpspider/zhask/libs/function.php on line 181
Php 用于批处理入口票证的fpdf缓存_Php_Caching_Output_Fpdf - Fatal编程技术网

Php 用于批处理入口票证的fpdf缓存

Php 用于批处理入口票证的fpdf缓存,php,caching,output,fpdf,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

我想在服务器上用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');

“输出”后的电子邮件中附加了该票证,与下一个票证相同。

我不确定您在问什么或问题出在哪里。你能进一步澄清吗?