我的網站的根目錄是「/ var/www/PDFBuilder」。我有2個文件夾「fpdf17」和「fpdi142」,我在「fpdf17」文件夾中解壓縮一個名爲「fpdf_tpl.php」的文件。使用FPDF和FPDI
這是我的代碼:
error_reporting(E_ALL);
ini_set('display_errors', '1');
define('FPDF_FONTPATH','/var/www/PDFBuilder/fpdf17/');
require('/var/www/PDFBuilder/fpdf17/fpdf.php');
include('/var/www/PDFBuilder/fpdi142/fpdi.php');
當我嘗試打開我的網站,這是輸出I得到:
Warning: require_once(fpdf_tpl.php): failed to open stream: No such file or directory in /var/www/PDFBuilder/fpdi142/fpdi.php on line 27 Fatal error: require_once(): Failed opening required 'fpdf_tpl.php' (include_path='.:/usr/share/php:/usr/share/pear') in /var/www/PDFBuilder/fpdi142/fpdi.php on line 27
我到底做錯了什麼?
謝謝你的貢獻。也許你可以嘗試簡單地解釋你發佈的鏈接。一瞥就會有所幫助 – Freakyuser