Código PHP:
<?php
require_once("dompdf\dompdf_config.inc.php");
$url = "test2.php";
//$html = file_get_contents($url);
$html =http_parse_message(http_get($url, array("timeout"=>5)))->body;
if($html == false)
{
ob_clean();
$html ="Timeout error. No se puede conectar a ".$url." Por favor intente de nuevo.";
}
else
{
$html= htmlspecialchars($html);
$dompdf = new DOMPDF();
$dompdf->load_html($html);
$dompdf->render();
$dompdf->stream("sample.pdf");
}
?>
Fatal error: Call to undefined function http_parse_message() in C:\Development\Web\crm\test.php on line 7
La pagina del test2.php funciona correctamente por si sola. la pagina test2 es simplemente una tabla que se llena por un query.
Si alguien me puede ayudar. gracias