如何将 csv 文件下载到指定目录中。?现在我使用了这段代码,
header("Location:uploads/".$dire);
header("Content-type: application/x-msdownload");
header("Content-Disposition: attachment; filename=".$nn);
header("Pragma: no-cache");
header("Expires: 0");
这里,$dire是上传文件夹的子目录,$nn是csv文件名。我想下载这个$nn文件并保存在指定的目录$dire中。但它显示一个错误
提前致谢。