php header()函数实现下载功能

一、 <?php header('Content-Disposition:attachment'); readfile("w.jpg"); ?> header('Content-Disposition: attachment'); 设置 http  报文头,告诉浏览器它所接收的文件的 Content-Disposition 属性为 attachment ,这样浏览器将直接显示接收
相关文章
相关标签/搜索