比如一个目录下存在文件a.zip
当打开b.php时,就直接弹出下载a.zip,不是读a.zip再以流的形的输出,而是直接
文件的路径
http://www.xx.com/a.zip
------解决方案--------------------
header
------解决方案--------------------
- PHP code
header('Location: http://www.xx.com/a.zip');
header('Location: http://www.xx.com/a.zip');