PHP群:95885625 Hbuilder+MUI群:81989597 站长QQ:634381967
    您现在的位置: 首页 > CMS教程 > ecshop教程 > 正文

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

    作者:admin来源:网络浏览:时间:2020-09-30 00:07:50我要评论
    导读:Strict standards: Non-static method cls_sql_dump::get_random_name() should not be called statically in D:\wamp\www\yjy_...
    Strict standards: Non-static method cls_sql_dump::get_random_name() should not be called statically in D:\wamp\www\yjy_shop\admin\database.php on line 64
     
    这个意思是说非静态方法::cls_sql_dump get_random_name() 
     
    既然这样,那我们就好解决了,找到admin\includes\cls_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,解决
    转载请注明(B5教程网)原文链接:https://b5.mxunkeji.com/content-104-1994-1.html
    相关热词搜索: