Author Topic: html2pdf not reading php scripts  (Read 2737 times)

yayo

  • Guest
html2pdf not reading php scripts
« on: July 14, 2008, 04:22:26 AM »
i have a problem with html2pdf... instead of

$fp = fopen("sample.html","r");
$strContent = fread($fp, filesize("sample.html"));

i changed it to

$fp = fopen("sample.php","r");
$strContent = fread($fp, filesize("sample.php"));

my problem is.. it will not read the php scripts.. like <?php echo "sample";?> it will not display sample on pdf format..in short it will not read php scripts..

help me please...

 

postern-length