如何更改我的mPDF Output()
的根文件夾?如何更改我的mPDF Output()的根文件夾?
我需要一個從變量中獲取的文件名,並且該文件應該保存在名爲「/ files」的文件夾中。該文件的位置應該在像$location =("/location")
這樣的變量中。
現在我的輸出在根文件夾中生成。
$sql=mysql_query("SELECT * FROM `client_details` ORDER BY `c_id` DESC LIMIT 1");
while($data = mysql_fetch_array($sql))
{
$name=$data['name'];
}
$name_p = $name."-estimation.pdf";
$mpdf->Output($name_p,'F');
定義在PHP的任何文件路徑相同的方式。 – WheatBeak
一些更加詳細的描述加入kindly檢查 – Alshoja