First of all, my computer environment is using the WAMP integrated development Environment, PHP version 5.5.12
Install to find the corresponding extension, or it will be a problem
PHP_REDIS.DLL:HTTP://WINDOWS.PHP.NET/DOWNLOADS/PECL/SNAPS/REDIS/2.2.5/find the corresponding extension in here and download
To place the extension Php_redis.dll: put it in the PHP ext directory (for example: D:\wamp\bin\php\php5.5.12\ext) and add the extension= in the php.ini file (all INI files are added) Php_redis.dll reboot, again access Phpinfo will see just the extension has been loaded in. Such as
Now use the test file
<?php
$redis = new Redis ();
$redis->connect (' 127.0.0.1 ', 6379);
$redis->set (' Test ', ' Hello Redis ');
echo $redis->get (' Test ');
Echo Phpinfo ();
?>
This time the browser will appear Hello Redis, this time to show that you can play redis.
Win7 installing Redis How to install extensions