![Antiguo](http://static.forosdelweb.com/fdwtheme/images/statusicon/post_old.gif)
12/02/2004, 17:01
|
| | Fecha de Ingreso: noviembre-2003
Mensajes: 114
Antigüedad: 21 años, 3 meses Puntos: 0 | |
html a pdf resulta que paso una url de un archivo html a pdf pero este me pasa en código, quisiera que se mostrara el formato.
$txt1 = $row->title;
$pdf->ezText($txt1,14);
$txt2 .= "$contents \n\n";
$pdf->ezText($txt2,8);
$txt3 ="$row->introtext\n$row->fulltext";
$pdf->ezText($txt3,10);
$pdf->ezStream();
function decodeHTML($string) {
$string = strtr($string, array_flip(get_html_translation_table(HTML_ENTITIE S)));
$string = preg_replace("/&#([0-9]+);/me", "chr('\\1')", $string);
return $string;
}
function get_php_setting($val) {
$r = (ini_get($val) == '1' ? 1 : 0);
return $r ? 'ON' : 'OFF';
}
donde
$file="archivo.html";
$basedir="carpeta/";
$fp=fopen($basedir.$file,"r");
$contents=fread($fp,filesize($basedir.$file));
__________________ Soporte y Creaciones PHP-Nuke: NukeProjects.Net
if($Necesitas=="Ayuda"){
echo "No dudes en pedirla";
} |