具体如下:
process.php文件如下:
$file = $_GET['file']; header("Content-type: octet/stream"); header("Content-disposition:attachment;filename=".$file.";"); header("Content-Length:".filesize($file)); readfile($file); exit;
html文件如下:
Image goes Here
上一篇:利用php怎么将网络图片保存到服务器中
下一篇:php怎么计算到指定日期还有多少天