Re: Ayuda con fpdf

From: Date: Wed, 28 Jul 2004 15:30:25 +0000
Subject: Re: Ayuda con fpdf
References: 1  Groups: php.general.es 
Request: Send a blank email to general-es+get-50550@lists.php.net to get a copy of this message
Aseguraté que tanto al inicio como al final del script no exista un espacio. Ha de terminar con ?> Es habitual que te genere espacios invisibles Fernando Villarroel wrote: > Hola estoy tratando de usar fpdf, estoy probando con > el primer ejemplo del tutorial, el mas basico: > > <?php > define('FPDF_FONTPATH','font/'); > require('fpdf.php'); > > $pdf=new FPDF(); > $pdf->AddPage(); > $pdf->SetFont('Arial','B',16); > $pdf->Cell(40,10,'¡Hola, Mundo!'); > $pdf->Output(); > ?> > > AL ejecutar me da el siguiente error: > > > Warning: Cannot modify header information - headers > already sent by (output started at > /home/developer/www/eje1.php:9) in > /home/developer/www/fpdf.php on line 1022 > FPDF error: Some data has already been output to > browser, can't send PDF file > > Tambien probe poniendo lo siguiente en el output: > > $pdf->output('prueba.pdf'); > > y me dio el siguiente error: > > Warning: fopen(prueba.pdf): failed to open stream: > Permission denied in /home/developer/www/fpdf.php on > line 1044 > FPDF error: Unable to create output file: prueba.pdf > > No se que ocurre si alguien me puede ayudar. > > Fernando > > > > > __________________________________ > Do you Yahoo!? > New and Improved Yahoo! Mail - 100MB free storage! > http://promotions.yahoo.com/new_mail -- nwes.php.net

« previous php.general.es (#50550) next »