php下载文件到本地指定的目录,不提示下载框 如题,各位同道给个建议吧,有代码更好 解决方案 » 免费领取超大流量手机卡,每月29元包185G流量+100分钟通话, 中国电信官方发货 下载路径可以在浏览器中自动定义$file = 'ASDFGgg.pdf';_Download("files_dir/".$file, $file);function _Download($f_location,$f_name){ header ("Cache-Control: must-revalidate, post-check=0, pre-check=0"); header('Content-Description: File Transfer'); header('Content-Type: application/octet-stream'); header('Content-Length: ' . filesize($f_location)); header('Content-Disposition: attachment; filename=' . basename($f_name)); readfile($f_location); } 【linux安装 libmcrypt 报错】 php问题 会的看一下 php共享内存的设置大小的问题,在线等 PHP如何传递对象变量? 怎么用一条sql语言写下面的 php用什么开发工具开发?新手! ajax技术 始终出去发送状态 请问csdn管理中的给分功能实现 ▓▓▓▓▓▓▓▓▓▓PHP与JSP那个更好?▓▓▓▓▓▓▓▓▓▓一定给分!!!!!!!! php可使用的新型数据库 PHPBASE 我用了AJAX,用了之后怎么测试php输出结果呢 相同内容不显示,如何实现
$file = 'ASDFGgg.pdf';
_Download("files_dir/".$file, $file);function _Download($f_location,$f_name){
header ("Cache-Control: must-revalidate, post-check=0, pre-check=0");
header('Content-Description: File Transfer');
header('Content-Type: application/octet-stream');
header('Content-Length: ' . filesize($f_location));
header('Content-Disposition: attachment; filename=' . basename($f_name));
readfile($f_location);
}