<? #get.php $get_url = urldecode($_GET[url]); $file_name = basename($get_url); header("Content-Transfer-Encoding: binary"); header('Content-Type: application/octetstream'); header('Content-Disposition: attachment; filename='.$file_name); header("Connection: close"); readfile($get_url); ?>
|
下载资源如 .mp3,jpg
以直接点击就能“另存为”的方式
=http://control.cublog.cn/images/top_left.gif
阅读(758) | 评论(0) | 转发(0) |