<?php <BR>$path=$_GET["path"]; <BR>$cacheimgname=str_replace("/","_",$path); <BR>$localimg="upimg/".$cacheimgname; <BR>if ((file_exists($localimg))) <BR>{ <BR>$httpurl=$localimg; <strong style="color:transparent">本文来源gaodai#ma#com搞@@代~&码*网/</strong><strong>搞gaodaima代码</strong> <BR>} <BR>else <BR>{ <BR>$httpurl="http://www.imageserver.com/".$path; <BR>@copy($httpurl,$localimg);//缓存图片! <BR>} <BR>header("Locationhttpurl"); <BR>exit; <BR>?> <BR>
调用它类似这样:
<BR>