FPDF
Moderator: General Moderators
FPDF
I'm fiddling around with FPDF and am running into a problem. I'm walking through the tutorials on their site, the simplest one there is. I copied and pasted it into a php file on my server and included the fpdf.php file. When i run it, it should open acrobat and display hello world however it tells me that headers have already been sent to the browser and cannot open the file. The error is that of the included file (fpdf.php) sending headers to the browser. does anyone know how to overcome this issue?
- John Cartwright
- Site Admin
- Posts: 11470
- Joined: Tue Dec 23, 2003 2:10 am
- Location: Toronto
- Contact:
I'm not outputing any headers. The required file used to create the pdf is what is outputing the headers. this is my php file:
Code: Select all
<?php
require('./fpdf153/fpdf.php');
$pdf=new FPDF();
$pdf->AddPage();
$pdf->SetFont('Arial','B',16);
$pdf->Cell(40,10,'Hello World!');
$pdf->Output();
?>- John Cartwright
- Site Admin
- Posts: 11470
- Joined: Tue Dec 23, 2003 2:10 am
- Location: Toronto
- Contact: