PHP Extended Redis Configuration and description under Windows

Source: Internet
Author: User
Tags phpinfo
This article to share the content is PHP in Windows to expand the configuration and description of Redis, has a certain reference value, the need for friends can refer to


Operating conditions


Window must have the Redis service installed and turned on.
If not please see Click to view

Summary

All we have to do is four steps.

The first step

View your phpconf ().

Step Two

Download Igbinary this thing
A total of two documents
Click to download

Download the corresponding version

Then put the compressed file in the red two files in the PHP ext directory.

Step Three

Download Phpredis Extensions
Click to download
Download the corresponding version, x86 or x64

Also put two files in the PHP ext directory

Step Three

Add two more lines php.ini:

Extension=php_igbinary.dll
Extension=php_redis.dll

And see if the Redis extension is included in the Phpinfo
If extended, you can use the new object directly.

Instantiate Redis    $redis = new Redis ();    Connection    $redis->connect (' 127.0.0.1 ', 6379);    Detects if the connection is successful,    echo "Server is running:". $redis->ping ();    Output results Server is running: +pong

Operating conditions

Window must have the Redis service installed and turned on.
If not please see Click to view

Summary

All we have to do is four steps.

The first step

View your phpconf ().

Step Two

Download Igbinary this thing
A total of two documents
Click to download

Download the corresponding version

Then put the compressed file in the red two files in the PHP ext directory.

Step Three

Download Phpredis Extensions
Click to download
Download the corresponding version, x86 or x64

Also put two files in the PHP ext directory

Step Three

Add two more lines php.ini:

Extension=php_igbinary.dll
Extension=php_redis.dll

And see if the Redis extension is included in the Phpinfo
If extended, you can use the new object directly.

Instantiate Redis    $redis = new Redis ();    Connection    $redis->connect (' 127.0.0.1 ', 6379);    Detects if the connection is successful,    echo "Server is running:". $redis->ping ();    Output results Server is running: +pong

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.