en una carpeta tengo el archivo fpdf.php.......y un ejemplo.php
En el fpdf.php...cambie este codigo como dice:
Código PHP:
if(defined('FPDF_FONTPATH'))
$file=FPDF_FONTPATH.$file;
Código PHP:
define('FPDF_FONTPATH','font/');
require('fpdf.php');
Código PHP:
<?php
require('fpdf.php');
$pdf=new FPDF();
$pdf->AddPage();
$pdf->SetFont('Arial','B',16);
$pdf->Cell(40,10,'¡Hola, Mundo!');
$pdf->Output();
?>
PERO ME DA ESTE ERROR Fatal error: Cannot redeclare class FPDF in C:\AppServ\www\tp\fpdf.php on line 14
ESTO ES LO QUE HAY EN ESAS LINEAS
Código PHP:
11 define('FPDF_VERSION','1.4');
12
13 class FPDF
14 {
15 //Private properties
16 var $page; //current page number
17 var $n; //current object number
AUIYDA AYUDA HELP HELP SOS 9911