2012-07-28 62 views
0

我有問題將html轉換爲pdf我正在使用TCPDF,我試圖得到以下內容。和它不工作:(如何使用file_get_content與PHP包括

$html = htmlspecialchars_decode(file_get_contents('main.php')); 


$html = htmlspecialchars_decode(file_get_contents('main.php')); 

html = file_get_contents('main.php'); 

我main.php包含以下代碼。

<?php 
include_once 'design/header.php'; 
include_once 'mainpage.php'; 
include_once 'design/sidemenu.php'; 
include_once 'design/footer.php'; 
?> 

有人可以幫我嗎?

基本上我在HTML表格使用產生的生成PHP循環和從數據庫中獲取信息,用戶可以將chnages添加到表值,一旦完成,他們可以點擊提交,它應該生成一個pdf文件。

ca ñ有人幫我這個?

+0

請定義'not working';你有錯誤嗎?空白頁? ... – 2012-07-28 12:48:10

回答