开发者

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
0

上一篇:

下一篇:

精彩评论

暂无评论...
验证码 换一张
取 消

最新问答

问答排行榜