Ver Mensaje Individual
  #1 (permalink)  
Antiguo 21/03/2009, 22:34
Avatar de gakutaru
gakutaru
 
Fecha de Ingreso: agosto-2005
Ubicación: frente a mi NtbK
Mensajes: 239
Antigüedad: 18 años, 8 meses
Puntos: 6
dompdf, error de conexion

Estoy usando dompdf para generar mis pdf principlamente porque acepta html.
tengo corriendo:
- servidor de xampp, apache y mysql
- y puedo ver localhost sin problemas
- tengo instalda dompdf en la raiz de xampp.
- estoy ejecuntando el hello world de dompdf
el prblema es que al ejecutar helloworld.php carga un rato y dice que no puede conectarse a internet, pero estoy conectado, porque tengo corriendo los servicios y ademas tengo otra clase (ezpdf) aparte que genera los pdf sin problemas, entonces no se que puede ser que no se conecta dompdf.

les anexo el 'dompdf_config.inc.php' (aunque no le he cambiado nada)
uso PHP: 5.2.8
Código PHP:
<?php

/* $Id: dompdf_config.inc.php,v 1.19 2006/07/07 21:31:02 benjcarson Exp $ */
error_reporting(E_STRICT E_ALL);
/** * The root of your DOMPDF installation */
define("DOMPDF_DIR"realpath(dirname(__FILE__)));
/** * The location of the DOMPDF include directory  */
define("DOMPDF_INC_DIR"DOMPDF_DIR "/include");
/** * The location of the DOMPDF lib directory */
define("DOMPDF_LIB_DIR"DOMPDF_DIR "/lib");
/** * The location of the DOMPDF font directory */
define("DOMPDF_FONT_DIR"DOMPDF_DIR "/lib/fonts/");
/**  * The location of the system's temporary directory. */
define("DOMPDF_TEMP_DIR""/tmp");
/** * The path to the tt2pt1 utility (used to convert ttf to afm) */
define("TTF2AFM""/usr/bin/ttf2pt1");
/** * The PDF rendering backend to use */
define("DOMPDF_PDF_BACKEND""auto");
/** * PDFlib license key * */
define("DOMPDF_PDFLIB_LICENSE""Licencia");
/** * The default paper size. */
define("DOMPDF_DEFAULT_PAPER_SIZE""letter");
/** * The default font family */
define("DOMPDF_DEFAULT_FONT""serif");
/** * Image DPI setting */
define("DOMPDF_DPI""150");
/** * Enable inline PHP */
define("DOMPDF_ENABLE_PHP"true);
/** * Enable remote file access */
define("DOMPDF_ENABLE_REMOTE"true);
/**  * DOMPDF autoload function  */
function DOMPDF_autoload($class) {
  
$filename mb_strtolower($class) . ".cls.php";
  require_once(
DOMPDF_INC_DIR "/$filename");
}

if ( !
function_exists("__autoload") ) {
  
/**
   * Default __autoload() function
   *
   * @param string $class
   */
  
function __autoload($class) {
    
DOMPDF_autoload($class);
  }
}

// ### End of user-configurable options ###


/**
 * Global array of warnings generated by DomDocument parser and
 * stylesheet class
 *
 * @var array
 */
$_dompdf_warnings = array();

/**
 * If true, $_dompdf_warnings is dumped on script termination.
 *
 * @var bool
 */
$_dompdf_show_warnings false;

/**
 * If true, the entire tree is dumped to stdout in dompdf.cls.php 
 *
 * @var bool
 */
$_dompdf_debug false;

require_once(
DOMPDF_INC_DIR "/functions.inc.php");

?>
probe este ejemplo
http://www.lawebdelprogramador.com/n...n8=0&n9=0&n0=0
y el mismo error, no se conecta.