Salve a tutti
ho un problema nella creazione di un file pdf con FPDF, mi è funzionato una sola volta e dopo ricevo questo errore :
codice:
Warning: Cannot modify header information - headers already sent by (output started at /var/www/test/pdf.php:2) in /var/www/test/fpdf/fpdf.php on line 1022
FPDF error: Some data has already been output to browser, can't send PDF file
vi posto anche il codice, non è difficile capire qual'è la linea 2
Codice PHP:
<?php
define('FPDF_FONTPATH','fpdf/font/');
require('fpdf/fpdf.php');
$pdf = new FPDF();
$pdf->AddPage();
$pdf->SetFont("Arial","B",16);
$pdf->Cell(40,10,"Hello World!");
$pdf->Output();
?>
Grazie anticipato a TUTTI
SAT