我收到此錯誤信息:FPDF錯誤輸出發送到瀏覽器
FPDF error: Some data has already been output, can't send PDF file
當我啓動下面的代碼;你知道爲什麼嗎?你可以幫我嗎?
$i = 0;
while ($i <= $y)
{
$namefilepdf=$x_labelname.$i.'.pdf';
$pdf=new FPDF();
$pdf->AddPage($x_lay,$x_dimpag);
$pdf->SetFont('Arial');
if (isset($x_toprint1))
if ($x_toprint1=='on')
if (isset($x_progressive1))
{
if ($x_progressive1=='on')
{
$pdf->SetFontSize($x_font1);
$pdf->Text($x_coordx1,$x_coordy1,$x_val1+$i);
}
}
else
{
$pdf->SetFontSize($x_font1);
$pdf->Text($x_coordx1,$x_coordy1,$x_valore1);
}
$pdf->Output($namefilepdf,'D');
$i++;
}
你會看到註釋線的時候'$ PDF - >輸出($ namefilepdf, 'd');'?一個空白的屏幕? – sofl 2013-02-28 13:47:11