Interpretation of php web page code
移动用户-4700646
移动用户-4700646 2019-11-27 11:14:20
0
1
1233

网页代码$redis = new Redis();        $redis->connect('192.168.163.162',6379) or die ("could net connect redis server");  #      $query = "select * from test limit 9";        $query = "select * from test";        for ($key = 1; $key < 10; $key )


访问网页报错Fatal error: Uncaught Error: Class 'Redis' not found in /usr/local/nginx/html/test.php:2 Stack trace: #0 {main} thrown in /usr/local/nginx/html/test.php on line 2

移动用户-4700646
移动用户-4700646

reply all(1)
A峰

There is no included Redis class library. If it has been introduced and an error is reported, it may be that the redis extension is not installed

Latest Downloads
More>
Web Effects
Website Source Code
Website Materials
Front End Template
About us Disclaimer Sitemap
php.cn:Public welfare online PHP training,Help PHP learners grow quickly!