1, run XAMPP service, open phpinfo View information, such as:
From top to bottom, in turn,
PHP Version:5.6;
Architecture:x86;
TS: Thread safety;
Vc11
2, remember the above several horizontal line content to download Php_memcache
Address:
http://PAN.BAIDU.COM/S/1HQ4QICW
Look for the corresponding Php_memcache version download.
3, download the successful decompression, and then copy the php_memcache.dll files within the xampp/php/ext .
4, modify Xampp/php/php.ini content, open php.ini, ctrl+f find "extension=" field, such as
Add Extension=php_memcache.dll under the last field in extension
5. Download and install memcached
Address:
http://PAN.BAIDU.COM/S/1BN0W4RP
6, decompression to d:memcached, Administrator to open cmd, into the memcached folder,
Run memcached.exe-d Install or command can also, no other content output is installed successfully
Run memcached.exe-d start to start the service, at which point the task Manager will have memcached service status.
7. Reopen Phpinfo at this time to see if there is memcache content
To this, the installation succeeds. The following environmental tests
8, run the following program, output this is a test, the build is successful.
<? PHP $mem New Memcache; $mem->connect ("127.0.0.1", 11211); $mem->set (' key ', ' This is a test! ', 0, $); $val $mem->get (' key '); Echo $val ;? >
Reference Documentation:
http://www.ccvita.com/258.html
XAMPP + Windows configuration memcache process