: This article describes how to install the phpredis module on the windwos platform. if you are interested in the PHP Tutorial, refer to it. Requirements
What is PHP Redis?
PHP Redis is a PHP module written in C language used to connect to and operate data on the Redis database.
Download
- : Https://github.com/phpredis/phpredis/downloads
In this case, my personal profile is correct. my next is php_redis-5.3-vc9-ts-73d99c3e.zip.
Use the phpinfo () function to view information about the current PHP version.
Install extension
Decompress the downloaded package and copy the *. dll module to the ext folder of PHP. The 5.3 package only contains the php_redis.dll module, and the 5.4 package contains the php_redis.dll and php_igbinary.dll modules.
Modify the PHP. ini file:
5.3 package introduces the following code
The 5.4 package introduces the following two modules:
PS: extension = php_igbinary.dll must be placed before extension = php_redis.dll; otherwise, this extension will not take effect.
Test
Restart the web server.
Enter the following code in the redis. php file:
connect("localhost","6379");$redis->set("string","Hello World");echo $redis->get("string");?>
Test in the browser. Note that the reids service must be started. For details about how to install Redis on windows, refer to an article I wrote earlier.
If the above article or link is helpful to you, don't forget to click "pretty good" at the end of the article or click "like" in the lower right corner of the page. You can also click the "share" floating button on the right side of the page to let more people read this article.
Author: Li-Cheng
Weibo: http://weibo.com/licheng0426
Source: http://www.cnblogs.com/Li-Cheng/p/4391337.html
Due to my limited level, if there is anything wrong with the expression and code in the article, please criticize and correct me. Leave your footprints. comments are welcome. You can also follow me and learn together!
(^_^) If you think this article is helpful to you, you can have a cup of coffee)
The above describes how to install the phpredis module on the windwos platform, including some content. I hope my friends who are interested in the PHP Tutorial will be helpful.