search

Home  >  Q&A  >  body text

Interpretation of php web page code

网页代码$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移动用户-47006461828 days ago1252

reply all(1)I'll reply

  • A峰

    A峰2019-12-03 17:16:12

    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

    reply
    0
  • Cancelreply