Win7 installing Redis How to install extensions

Source: Internet
Author: User
Tags phpinfo

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

Related Article

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.