以下用简单的例子俩表示输出下载文件的信息
header("Pragma: public");
header("Expires: 0");
header("Cache-Control: must-revalidate, post-check=0, pre-check=0");
header("Cache-Control: private",false);
header("Content-Type: application/force-download ;charset=utf-8");
header("Content-Disposition: attachment; filename=\"".$file_name."\";");
header("Content-Transfer-Encoding: binary");
header("Content-Length: ".@filesize($downfile));
set_time_limit(0);
@readfile($downfile) or die("文件不存在");
-----------------------------------------------------------------------------------
当点击下载文件连接的时候。跳出一个下载对话框。如何用程序获取对话框是点击了保存还是取消按钮事件。
header("Pragma: public");
header("Expires: 0");
header("Cache-Control: must-revalidate, post-check=0, pre-check=0");
header("Cache-Control: private",false);
header("Content-Type: application/force-download ;charset=utf-8");
header("Content-Disposition: attachment; filename=\"".$file_name."\";");
header("Content-Transfer-Encoding: binary");
header("Content-Length: ".@filesize($downfile));
set_time_limit(0);
@readfile($downfile) or die("文件不存在");
-----------------------------------------------------------------------------------
当点击下载文件连接的时候。跳出一个下载对话框。如何用程序获取对话框是点击了保存还是取消按钮事件。
要这么说的。用这个http是实现不了这个功能。那请问一下用什么技术可以实现呢