$func = 'image'.$type;
{
$name = uniqid().'.'.$type;
}else{
$ info = pathinfo($soruce);#
$name = $ pathinfo['filename'].'.'.$type;
}
$path = rtrim($path)); $func($soruceRes,$path);
imagedestroy($soruceRes);
}
//開啟圖片的函數
function open($path)
{
//判斷檔案中是否有
exit('文件不存在');
}
函數名稱寫錯了,估計你要寫的是 imagejpeg()