首页建站经验 2015年安装ECSHOP出现错误Redefining already defined constructor for class

2015年安装ECSHOP出现错误Redefining already defined constructor for class

从网上找到的一个解决方法,ecshop是不是快费了,不更新了,现在安装会出现很多问题。function captcha($folder = '', $width = 145, $height = 20){if (!empty($folder)){$this-…

从网上找到的一个解决方法,ecshop是不是快费了,不更新了,现在安装会出现很多问题。

function captcha($folder = '', $width = 145, $height = 20)

{

if (!empty($folder))

{

$this->folder = $folder;

}

$this->width = $width;

$this->height = $height;

/* 检查是否支持 GD */

if (PHP_VERSION >= '4.3')

{

return (function_exists('imagecreatetruecolor') || function_exists('imagecreate'));

}

else

{

return (((imagetypes() & IMG_GIF) > 0) || ((imagetypes() & IMG_JPG)) > 0 );

}

}

把上面的代码移动到 __construct 后面

function __construct($folder = '', $width = 145, $height = 20)

{

$this->captcha($folder, $width, $height);

}

 

本文来自网络,不代表1号站长-站长学院|资讯交流平台立场。转载请注明出处: https://www.1cn.cc/jianzhan/jingyan/17000.html
上一篇最新wordpress主题制作之新手教程系列(二)
下一篇 ecshop模板下foreach的用法详解
admin

作者: admin

这里可以再内容模板定义一些文字和说明,也可以调用对应作者的简介!或者做一些网站的描述之类的文字或者HTML!

为您推荐

评论列表()

    联系我们

    联系我们

    0898-88888888

    在线咨询: QQ交谈

    邮箱: email@wangzhan.com

    工作时间:周一至周五,9:00-17:30,节假日休息

    关注微信
    微信扫一扫关注我们

    微信扫一扫关注我们

    关注微博
    返回顶部