WebsiteBaker Community Forum

General Community => Global WebsiteBaker 2.8.x discussion => Topic started by: yayo on July 14, 2008, 04:22:26 AM

Title: html2pdf not reading php scripts
Post by: yayo 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...