如何将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
中。但是它显示错误
提前谢谢。
您无法控制客户端(网络浏览器)的行为。