,這下面是我的download.php如何將文件下載到所需的文件夾/路徑?
header('Content-Description: File Transfer');
header('Content-Type: application/octet-stream');
header('Content-Disposition: attachment; filename='.basename($fileName));
header('Content-Transfer-Encoding: binary');
header('Expires: 0');
header ("Cache-Control: must-revalidate");
header('Pragma: public');
ob_clean();
flush();
readfile($data);
echo $data;
exit;
我想將文件下載到我想要的文件夾,如C代碼:\用戶\華碩或d:\程序不是默認一個 $數據文件和$文件名的內容已經包括擴展名例:picture.jpg
THX之前所有幫助我可以得到:)
Henry
Thx爲答案:) – 2013-04-29 10:43:53