PHP Windows extended Redis

Source: Internet
Author: User
Tags php windows phpinfo

Second, php5.4 connection using Redis,

1. Download the Phpredis.dll expansion pack first. : Https://github.com/nicolasff/phpredis/downloads

See TS VC9 with Phpinfo. Then the downloaded version will correspond well

TS version phpredis_5.4_vc9_ts.7z NTS version phpredis_5.4_vc9_nts.7z

2. After extracting two files, two files are copied to the Ext directory of PHP directory.

3, modify the php.ini file. Join extension Extensions

Extension=php_igbinary.dll
Extension=php_redis.dll

4. Restart Apache to view the Phpinfo interface. The following indicates a successful installation

5. Phpredis Hellow Word start your redis use

<?php     $redis= newRedis();                   //redis对象     $redis->connect("192.168.60.6","6379"); //连接redis服务器     $redis->set("test","Hello World");      //set字符串值     echo$redis->get("test");               //获取值?>


Detailed manual for working with Redis in PHP. Chinese Manual: Http://www.cnblogs.com/zcy_soft/archive/2012/09/21/2697006.html

Redis configuration file Detailed description, the following pick to Http://www.cnblogs.com/wenanry/archive/2012/02/26/2368398.html

PHP Windows extended Redis

Related Article

Contact Us

The content source of this page is from Internet, which doesn't represent Alibaba Cloud's opinion; products and services mentioned on that page don't have any relationship with Alibaba Cloud. If the content of the page makes you feel confusing, please write us an email, we will handle the problem within 5 days after receiving your email.

If you find any instances of plagiarism from the community, please send an email to: info-contact@alibabacloud.com and provide relevant evidence. A staff member will contact you within 5 working days.

A Free Trial That Lets You Build Big!

Start building with 50+ products and up to 12 months usage for Elastic Compute Service

  • Sales Support

    1 on 1 presale consultation

  • After-Sales Support

    24/7 Technical Support 6 Free Tickets per Quarter Faster Response

  • Alibaba Cloud offers highly flexible support services tailored to meet your exact needs.