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,解决
新闻热点
疑难解答