Starting with the local environment, the PHP environment under Windows, I used the Wamp, is actually apache2,php5.5.12, first find the relevant Redis package required files from the Internet: http://windows.php.net/downloads/ PECL/SNAPS/REDIS/2.2.5/(a search can find a bunch, very similar, the only thing to note is the version)
Local with phpinfo view, find msvc items, my is MSVC11 (Visual C + + 2012), and the system is 64-bit
After downloading there will be some files, find the inside of the Php_redis.dll, copied to the PHP extension directory (depending on the situation, usually in wamp\bin\php\php5.5.12\ext).
Open php.ini Add Extension=php_redis.dll.
Restart Apache, and then look at the phpinfo of localhost and find redis with relevant information (version number, enabled).
; Redis
Extension=php_igbinary.dll
Extension=php_redis.dll
Use
$redis = new Redis ();
$result = $redis->connect (' 127.0.0.1 ', 6379);
Var_dump ($result); Result: BOOL (TRUE)
PHP redis Extension Link
http://down.thinkphp.cn/download.php?key=MTUxMjYzMjA4NY+ xf2oyl6brumkp2lpmeq2wswoss4atqlw5rduum9nmhoyczopeuzovdyuvtmysz7uhak6/i6yasqaa3mz6pmmzj5mcl7uzycsfnsjjz4+ Gw5caqbsgl2kyu5dpsoan15yagqebql2rryh/3ls5imwxe2iuv4usmrkmgm3ieqtwmy+dm5qr0nfdnanyyjshzbyqhknjzrwqwlp82a6ekqa
Womdows Redis https://github.com/MicrosoftArchive/redis/releases
Windows installation of Redis Extensions under PHP development (WAMP)