S
S
SLaMeeR2018-03-09 13:27:36
PHP
SLaMeeR, 2018-03-09 13:27:36

What's wrong with redis?

The site displays an error:

Fatal error: Uncaught Error: Class 'Redis' not found in /var/www/html/inc/system/redis.php:2 Stack trace: #0 /var/www/html/index.php(6): include() #1 {main} thrown in /var/www/html/inc/system/redis.php on line 2

redis.php file
<?php
$redis = new Redis();
$redis->connect('localhost:6379');
?>

What is the error and how to fix it?

Answer the question

In order to leave comments, you need to log in

2 answer(s)
R
RidgeA, 2018-03-09
@RidgeA

Well, that's where the error is...

B
Boris Korobkov, 2018-03-09
@BorisKorobkov

https://github.com/phpredis/phpredis#installingcon...

Didn't find what you were looking for?

Ask your question

Ask a Question

731 491 924 answers to any question