$filename=$_FILES["photo"]["tmp_name"];
$extension=end(explode(".", $filename));
$newfilename="1.".$extension;
$target = "image_files/". $newfilename;
if(move_uploaded_file($_FILES['photo']['tmp_name'], $target))
{
echo "Ok";
}
我已经创建了上面的代码,但是如何上传调整大小的图像?