Il file fpdf.php l'ho messo nella cartella dove eseguo il mio script:

questi sono i file incriminati:

I primi 2 funzionano e sono stati illustrati precedentemente:
Questi sono gli altri 2 che servono per creare il file in PDF:
Il primo è PDF.pdf
Codice PHP:
<?
class PDF extends FPDF
{
//Load data
function LoadData($file)
{
    
//Read file lines
    
$lines=file($file);
    
$data=array();
    foreach(
$lines as $line)
        
$data[]=explode('\n',chop($line));
    return 
$data;
}

//Simple table
function BasicTable($header,$data)
{
    
//Header
    
foreach($header as $col)
        
$this->Cell(40,7,$col,1);
    
$this->Ln();
    
//Data
    
foreach($data as $row)
    {
        foreach(
$row as $col)
            
$this->Cell(40,6,$col,1);
        
$this->Ln();
    }
}

//Better table
function ImprovedTable($header,$data)
{
    
//Column widths
    
$w=array(40,35,40,45);
    
//Header
    
for($i=0;$i<count($header);$i++)
        
$this->Cell($w[$i],7,$header[$i],1,0,'C');
    
$this->Ln();
    
//Data
    
foreach($data as $row)
    {
        
$this->Cell($w[0],6,$row[0],'LR');
        
$this->Cell($w[1],6,$row[1],'LR');
        
$this->Cell($w[2],6,number_format($row[2]),'LR',0,'R');
        
$this->Cell($w[3],6,number_format($row[3]),'LR',0,'R');
        
$this->Ln();
    }
    
//Closure line
    
$this->Cell(array_sum($w),0,'','T');
}

//Colored table
function FancyTable($header,$data)
{
    
//Colors, line width and bold font
    
$this->SetFillColor(255,0,0);
    
$this->SetTextColor(255);
    
$this->SetDrawColor(128,0,0);
    
$this->SetLineWidth(.3);
    
$this->SetFont('','B');
    
//Header
    
$w=array(40,35,40,45);
    for(
$i=0;$i<count($header);$i++)
        
$this->Cell($w[$i],7,$header[$i],1,0,'C',1);
    
$this->Ln();
    
//Color and font restoration
    
$this->SetFillColor(224,235,255);
    
$this->SetTextColor(0);
    
$this->SetFont('');
    
//Data
    
$fill=0;
    foreach(
$data as $row)
    {
        
$this->Cell($w[0],6,$row[0],'LR',0,'L',$fill);
        
$this->Cell($w[1],6,$row[1],'LR',0,'L',$fill);
        
$this->Cell($w[2],6,number_format($row[2]),'LR',0,'R',$fill);
        
$this->Cell($w[3],6,number_format($row[3]),'LR',0,'R',$fill);
        
$this->Ln();
        
$fill=!$fill;
    }
    
$this->Cell(array_sum($w),0,'','T');
}


}


?>
Il secondo è stampapdf.php(praticamente ho hatto un copia de incolla sul tutorial del sito fpdf riguardante la costruzione di una tabella)
Codice PHP:
<?
require('fpdf.php');
define('FPDF_FONTPATH','c:\programmi\easyphp1-8\www\font\');

require('
PDF.php');

$pdf=new PDF();
//Column titles
$header=array('
Codice','Titolo','Genere','Durata(minuti)');
//Data loading
$data=$pdf->LoadData('
c:\listafilm.txt');
$pdf->SetFont('
Arial','',14);
$pdf->AddPage();
$pdf->BasicTable($header,$data);
$pdf->AddPage();
$pdf->ImprovedTable($header,$data);
$pdf->AddPage();
$pdf->FancyTable($header,$data);
$pdf->Output();



?>
L'errore è il seguente:

Parse error: parse error in c:\programmi\easyphp1-8\www\database_film\stampapdf.php on line 5