登录

Fatal error: Call to undefined function imagespeg() in D:\phpStudy\WWW\image\water.php on line 85

       
        $func = 'image'.$type;
        
        //处理path路径 是否启用随机文件名    
        if($isRanName)
        {
            $name = uniqid().'.'.$type;
        }else{
            $pathinfo = pathinfo($soruce);
            //var_dump($pathinfo);
            
            $name = $pathinfo['filename'].'.'.$type;
        }
        
        $path = rtrim($path,'/').'/'.$name;
        
        $func($soruceRes,$path);
        
        imagedestroy($soruceRes);
        
        imagedestroy($waterRes);
        
    }

    //打开图片的函数
    function open($path)
    {
        //判断文件是否存在
        if(!file_exists($path))
        {
            exit('文件不存在');
        }
       

# PHP
LiuBo LiuBo 2408 天前 947 次浏览

全部回复(1) 我要回复

  • 风豆丁

    风豆丁2017-08-24 18:55:37

    函数名写错了,估计你要写的是 imagejpeg()

    回复
    0
  • 取消 回复 发送