为了账号安全,请及时绑定邮箱和手机立即绑定

求大神指导

求大神指导

我是个9527 2017-01-05 08:57:26
$createFun=str_replace("/", "createfrom", $mime);//imagejpeg()$outFun=str_replace("/",null,$mime);/** @var TYPE_NAME $createFun */$src_image=$createFun($filename);$dst_50_image=imagecreatetruecolor(50, 50);$dst_220_image=imagecreatetruecolor(220, 220);$dst_350_image=imagecreatetruecolor(350, 350);$dst_800_image=imagecreatetruecolor(800, 800);imagecopyresampled($dst_50_image, $src_image, 0,0,0,0, 50, 50, $src_w, $src_h);imagecopyresampled($dst_220_image, $src_image, 0,0,0,0, 220, 220, $src_w, $src_h);imagecopyresampled($dst_350_image, $src_image, 0,0,0,0, 350, 350, $src_w, $src_h);imagecopyresampled($dst_800_image, $src_image, 0,0,0,0, 800, 800, $src_w, $src_h);$outFun($dst_50_image,"uploads/image_50/".$filename);$outFun($dst_220_image,"uploads/image_220/".$filename);$outFun($dst_350_image,"uploads/image_350/".$filename);$outFun($dst_800_image,"uploads/image_800/".$filename);报错了怎么改$outFun跟$createFun有错
查看完整描述

1 回答

?
KevenHuang

TA贡献280条经验 获得超233个赞

你应该把具体错误信息贴上来,不然怎么知道你具体是哪里错了。
查看完整回答
反对 回复 2017-01-05
  • 我是个9527
    我是个9527
    语法错,直接显示错误
  • KevenHuang
    KevenHuang
    语法错误也得有个错误信息啊,难道给你蒙一个答案?
  • 我是个9527
    我是个9527
    $outFun报错function name must be callable - a string Closure or class implementing_invoke,currently mixed.
  • 1 回答
  • 0 关注
  • 1673 浏览
慕课专栏
更多

添加回答

举报

0/150
提交
取消
意见反馈 帮助中心 APP下载
官方微信