Windows installation of Redis Extensions under PHP development (WAMP)

Source: Internet
Author: User
Tags php redis phpinfo

Starting with the local environment, the PHP environment under Windows, I used the Wamp, is actually apache2,php5.5.12, first find the relevant Redis package required files from the Internet: http://windows.php.net/downloads/ PECL/SNAPS/REDIS/2.2.5/(a search can find a bunch, very similar, the only thing to note is the version)

Local with phpinfo view, find msvc items, my is MSVC11 (Visual C + + 2012), and the system is 64-bit

After downloading there will be some files, find the inside of the Php_redis.dll, copied to the PHP extension directory (depending on the situation, usually in wamp\bin\php\php5.5.12\ext).

Open php.ini Add Extension=php_redis.dll.

Restart Apache, and then look at the phpinfo of localhost and find redis with relevant information (version number, enabled).

; Redis
Extension=php_igbinary.dll
Extension=php_redis.dll

Use

$redis = new Redis ();
$result = $redis->connect (' 127.0.0.1 ', 6379);
Var_dump ($result); Result: BOOL (TRUE)

PHP redis Extension Link

http://down.thinkphp.cn/download.php?key=MTUxMjYzMjA4NY+ xf2oyl6brumkp2lpmeq2wswoss4atqlw5rduum9nmhoyczopeuzovdyuvtmysz7uhak6/i6yasqaa3mz6pmmzj5mcl7uzycsfnsjjz4+ Gw5caqbsgl2kyu5dpsoan15yagqebql2rryh/3ls5imwxe2iuv4usmrkmgm3ieqtwmy+dm5qr0nfdnanyyjshzbyqhknjzrwqwlp82a6ekqa

Womdows Redis https://github.com/MicrosoftArchive/redis/releases

Windows installation of Redis Extensions under PHP development (WAMP)

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.