如题
$file=str_replace(array('../',':','\'','"'),array('','','',''),$_GET['photo']);
$filename=end(explode("/",$_GET['photo']));
$type=end(explode(".",$file));
header('Content-type: image/'.$type);
header('Content-Disposition: attachment; filename='.basename($filename));
readfile($file);
$file=str_replace(array('../',':','\'','"'),array('','','',''),$_GET['photo']);
$filename=end(explode("/",$_GET['photo']));
$type=end(explode(".",$file));
header('Content-type: image/'.$type);
header('Content-Disposition: attachment; filename='.basename($filename));
readfile($file);
解决方案 »
免费领取超大流量手机卡,每月29元包185G流量+100分钟通话, 中国电信官方发货