How i can download a csv file into a specified directory.? Now I used this code,
header("Location:uploads/".$dire);
header("Content-type: application/x-msdownload");
header("Content-Disposition: attachment; filename=".$nn);
header("Pragma: no-cache");
header("Expires: 0");
Here, $dire
is the sub directory of upload folder and $nn
is the csv file name. I want to download this $nn
file and saved in a specified directory $dire
. But the it shows an error
Thanks in advance.
您无法控制客户端(网络浏览器)的行为。
The technical post webpages of this site follow the CC BY-SA 4.0 protocol. If you need to reprint, please indicate the site URL or the original address.Any question please contact:yoyou2525@163.com.