Install the phpredis module on the windwos platform

Source: Internet
Author: User
Tags php redis
: 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
    • Required knowledge

      Familiar with basic programming environment setup.

    • Running environment

      Windows 7 (64-bit );
      Php-5.3
      Redis64-2.8.17

    • Environment download

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.

  • Edis for windows

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.

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.