日期:2014-05-17 浏览次数:20626 次
function GrabImage($url) { if($url==""):return false;endif; $filename='qq/'.strrchr($url,"/"); ob_start(); readfile($url); $img = ob_get_contents(); ob_end_clean(); $size = strlen($img); $fp2=@fopen($filename, "a"); fwrite($fp2,$img); fclose($fp2); return $filename; }
------解决方案--------------------