0
我需要更改要保存的文件的路徑。請幫幫我。如何更改要保存的文件的路徑?
$filename = "All Reports";
header("Content-type: application/octet-stream");
header("Content-Disposition: attachment; filename=" . $filename . ".xls");
header("Pragma: no-cache");
header("Expires: 0");
將'$ filename'更改爲你想要的。有什麼問題? – Barmar
這將告訴瀏覽器下載文件。由用戶決定應該保存在哪裏。 –
你的意思是你需要將它保存到用戶計算機上的另一個文件夾中嗎?服務器不能這樣做。 – Barmar