<?php
$path=$_GET["path"];
$cacheimgname=str_replace("/","_",$path);
$localimg="upimg/".$cacheimgname;
if ((
file_exists($localimg)))
{
$httpurl=$localimg;
}
else
{
$httpurl="http://www.jb200.com/".$path;
@copy($httpurl,$localimg);//缓存图片!
}
header("Locationhttpurl");
exit;
?>