Having problems trying to use the phpredis class
I have done the following instructions to install phpredis, and they have been successful:
phpize
./configure
sudo make
sudo make install
Then, I added the following line: extension=redis.so
to the directory: /Applications/XAMPP/etc/php.ini
I am using this code:
$redis = new Redis();
$redis->connect('localhost', 6379);
But, I get the followin开发者_运维知识库g error:
Class 'Redis' not found in /Users/egidra/Sites/Admin/phpredis.php on line 131
精彩评论