First download the Phpmemcache with the address:
Http://up.2cto.com/2012/0522/20120522094758371.rar
Unzip the file, after extracting the following files:
Then open cmd as an administrator, into the directory just unzipped,
Install Memcache:
memcached.exe-d Install
Then start the Memcache service:
memcached.exe-d start
So the Memcache service is installed.
Then add the Phpmemcache extension to the XAMPP.
The uninstall Memcache Service command is:
memcached.exe-d Uninstall
The Stop memcache Service command is:
Memcached.exe-d stop
First create a new file 1.php under Htdocs, enter the following:
<?phpecho phpinfo ();? >
This is the version of your PHP information, presumably the following:
It is important to note that the PHP version of architecture and the top are the two parts;
Next download Php_memcache.dll, address: http://pecl.php.net/package/memcache/3.0.8/windows
Remember to look for your version, I downloaded the following version:
Unzip the downloaded file and copy the Php_memcache.dll inside to Xampp/php/ext.
Then open php.ini (under xampp/php) and add the following at the end:
;p Hp-memcachedextension=php_memcache.dll[memcache]memcache.allow_failover = 1memcache.max_failover_attempts= 20memcache.chunk_size =8192memcache.default_port = 11211
Save and exit and restart your Apache server.
It is important to note that if you use the thinkphp framework, then the default cache is file and you can modify it to memcache in the configuration file, using the following method:
Open thinkphp/thinkphp/conf/convention.php, find ' data_cache_type ' This item, change to Memcache, save and exit on it.
Windows XAMPP Installation Php_memcache extensions