‘壹’ 为什么用php对上传图片进行裁剪的时候,没成功,而且连上传的原图都没了
加个base64_decode方法试试:
$src = imagecreatefromstring(base64_decode(file_get_contents($src_path)));
‘贰’ php上传图片函数
if(!empty($uploadfile)){
$sql="insert into `tablename`(`pathname`) values('$uploadfile')";
mysql_query($sql);
}