A5下载 - 努力做内容最丰富最安全的下载站!

A5站长下载站

当前位置:A5下载 > 源码技巧 > Ecshop > ecshop后台数据备份 Strict standards: Non-static method cls_sql_dump::get_random_name() should not be calle

ecshop后台数据备份 Strict standards: Non-static method cls_sql_dump::get_random_name() should not be calle

时间:2015-05-22 11:08作者:sa人气:1082

Strict standards: Non-static method cls_sql_dump::get_random_name() should not be called statically in D:wampwwwyjy_shopadmindatabase.php on line 64

这个意思是说非静态方法::cls_sql_dump get_random_name()

既然这样,那我们就好解决了,找到
adminincludescls_sql_dump.php 480行

function get_random_name()

{

$str = date('Ymd');

for ($i = 0; $i < 6; $i++)

{

$str .= chr(mt_rand(97, 122));

}

return $str;

}

在前面添加上 static

static function get_random_name()

{

$str = date('Ymd');

for ($i = 0; $i < 6; $i++)

{

$str .= chr(mt_rand(97, 122));
}

return $str;

}

ok,解决

 

标签ecshop,后台,数据备份,Strict,standard

相关下载

查看所有评论+

网友评论

网友
您的评论需要经过审核才能显示

公众号