memcached extensions for installing PHP7 under Windows

Source: Internet
Author: User
Tags memcached phpinfo

Https://stackoverflow.com/questions/34952502/memcache-for-php7-on-windows,

git download Address: https://github.com/nono303/PHP7-memcache-dll

Baidu Network Disk Link: Http://pan.baidu.com/s/1ge9MvEN Password: Zwoh



Download according to your PHP version

After the download is unpacked,

Just go to the Php/ext directory and put Php_memcache.dll in there.

Then add a section to the php.ini in the PHP directory
Extension=php_memcache.dll

When you are done, restart Apache or Nginx.

Then in the PHP page Output phpinfo ();

Check that the memcache is loaded successfully.

if successfully loaded, you can do memcache test on a php page

1 2 3 4 5 6 7 8 9 10 11 <?php//phpinfo (); $memcache = new Memcache;   $memcache->connect (' 127.0.0.1 ', 11211) or die (' shit ');   $memcache-> set (' key ', ' Hello memcache! ');   $ out = $memcache-> get (' key '); echo $ out;

a successful word will output

1 Hello memcache!



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.