php修改写入路径
<!--Code highlighting produced by Actipro CodeHighlighter (freeware)http://www.CodeHighlighter.com/--><?phpfunction getImage($url,$filename="",$ext) { if(!$url) return false; $filename=date("dMYHis").$ext; ob_start(); readfile($url); $img = ob_get_contents(); ob_end_clean(); [email protected]($filename, "a"); fwrite($fp2,$img); fclose($fp2); return $filename; } $link=$_GET['url'];$ext=$_GET['ext'];$img=getImage("$link","","$ext");if($img)echo "<p>".$img."<br><a href=".%24img.">Enter</a>";elseecho "false<br>url<br>ext<br>";?>