Ver Mensaje Individual
  #1 (permalink)  
Antiguo 11/10/2008, 17:39
los_ganers
 
Fecha de Ingreso: diciembre-2007
Mensajes: 167
Antigüedad: 17 años, 3 meses
Puntos: 0
Problemas con fpdf

baje fpdf

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
Por este

Código PHP:
define('FPDF_FONTPATH','font/');
require(
'fpdf.php'); 
Y EN EL EJEMPLO.PHP TENGO ESTO

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