: This article describes how to install Memcached using wamp. For more information about PHP tutorials, see. My wamp version information:
WampServer Version 2.2, Apache Version 2.2.22, PHP Version 5.3.13, MySQL Version 5.5.24
Procedure:
1. download memcached for windows and install it on your computer. installation process:
① Decompress the EXE file to the edisk (or elsewhere) and run the command: memcached.exe-d install on the edisk
② Run: memcached.exe-d start to start the service. The service can be found on the windows service of the machine. memcached is started by default and can be changed to manual start.
2. download php_memcached.dll
The most important thing is that php_memcached.dll must correspond to the php version on your machine. If it does not match, memcached loading will fail. After the dll file is downloaded successfully, put php_memcache.dll in the php ext Directory, download the dll address: click to open the link, in fact, in the PHP Manual over: https://php.net/search Memcache, enter
Installation, you can also find the corresponding download link
3. configure memcached extension for php
Add extension = php_memcache.dll to the php. ini file. if the file already contains this sentence, remove the semicolon before extension.
4. restart all wamp services
5. The following is the test code.
connect("127.0.0.1", 11211);$mem->set('key', 'Hello Memcached!', 0, 60);$val = $mem->get('key');echo $val;
6. The Memcached installation file and dll file I used: http://pan.baidu.com/s/1pJiJ0LH
The above describes how to install Memcached with wamp, including some content. I hope that some friends who are interested in PHP tutorials can help me.