if ($_GET['action']=="down")
{
$file=end(explode("/",$_GET['path']));
$type=end(explode(".",$file));
header('Content-type: image/'.$type);
header('Content-Disposition: attachment; filename='.$file);
readfile($file);
}
?>
来自 “ ITPUB博客 ” ,链接:https://blog.itpub.net/10294527/viewspace-125339/ ,如需转载,请注明出处,否则将追究法律责任。