Recently, due to the project relationship, but also began to toss the CI framework. It is necessary to use the memcached cache processing technology in the CI framework.
Go, get up, first install memcached:
First step: Download the Memcached.exe file first:
: Http://www.tanbo.name/wp-content/uploads/2012/12/memcached.exe
Step two: Download Php_memcache.dll
Memcached: (Found on the Internet, note must be in line with the PHP version of their own.) How to view your PHP version? Write a phpinfo file)
Http://www.tanbo.name/wp-content/uploads/2012/12/php_memcache.dll_.zip
Step three: Start the installation
1. Put Php_memcache.dll in the Ext extension folder of your PHP installation package. Then add a row below the extended directory in php.ini Extension=php_memcache.dll
2, put the Memcached.exe file in the C packing directory (wherever you put), and then open into CMD, enter a command to install and open the memcached. (Reminder: After the open, the future will not have to control, the computer starts itself will open memcached)
Installation: memcached.exe-d Install
Service: net start "memcached Server"
Start: memcached.exe-d start
650) this.width=650; "src=" http://s3.51cto.com/wyfs02/M02/70/E8/wKioL1XBfH2AOV5ZAAJliMHQ-Zw148.jpg "style=" float: none; "title=" QQ picture 20150805101731.jpg "alt=" Wkiol1xbfh2aov5zaajlimhq-zw148.jpg "/>
Fourth Step: Restart your Web environment Apache to see if Memcache is loaded in Phpinfo (). If any, the installation OK is indicated.
650) this.width=650; "src=" http://s3.51cto.com/wyfs02/M02/70/EC/wKiom1XBeoWBja4hAAHMW3J3BVo322.jpg "style=" float: none; "title=" QQ picture 20150805103412.png "alt=" Wkiom1xbeowbja4haahmw3j3bvo322.jpg "/>
Fifth step: Write a code test. If there is no error, everything OK.
<?php$mem = new Memcache; $mem->connect (' localhost ', 11211) or Die ("Could not Connect"), echo "
Note here: The default port number for memcached is 11211. If it is occupied, it will be changed into something else.
650) this.width=650; "src=" Http://s3.51cto.com/wyfs02/M01/70/E9/wKioL1XBf4fSZ76oAALYsm5LWvc753.jpg "title=" QQ picture 20150805110517.png "alt=" Wkiol1xbf4fsz76oaalysm5lwvc753.jpg "/>
This means that you can use it.
Reference: http://www.tanbo.name/html/158.html
650) this.width=650; "src=" Http://img.baidu.com/hi/jx2/j_0028.gif "alt=" J_0028.gif "/>650" this.width=650; "src=" Http://img.baidu.com/hi/jx2/j_0028.gif "alt=" J_0028.gif "/>650" this.width=650; "src=" http://img.baidu.com/hi/ Jx2/j_0028.gif "alt=" J_0028.gif "/>650" this.width=650; "src=" Http://img.baidu.com/hi/jx2/j_0028.gif "alt=" j_ 0028.gif "/>650) this.width=650;" src= "Http://img.baidu.com/hi/jx2/j_0028.gif" alt= "J_0028.gif"/>650 " this.width=650, "src=" Http://img.baidu.com/hi/jx2/j_0028.gif "alt=" J_0028.gif "/>650" this.width=650; "src=" http ://img.baidu.com/hi/jx2/j_0028.gif "alt=" J_0028.gif "/>650" this.width=650; "src=" http://img.baidu.com/hi/jx2/j _0028.gif "alt=" J_0028.gif "/>650" this.width=650; "src=" Http://img.baidu.com/hi/jx2/j_0028.gif "alt=" j_0028.gif "/>
PHP installation using memcached, here is OK. But new questions were found:
What is the difference between memcache and memcached???
The Memcache module provides a convenient process-oriented and object-oriented interface for memcached, Memcached is a resident process cache product that is created to reduce the load of data from a database by Dynamic Web applications.
memcached is a high-performance distributed memory object caching system that is often used to reduce database load pressure to improve the responsiveness of dynamic Web applications.
Read the manual:
http://php.net/manual/zh/book.memcache.php
http://php.net/manual/zh/book.memcached.php
The difference between Memcache and memcached online information:
Http://www.cnblogs.com/scotoma/archive/2011/02/15/1955573.html
Http://www.cnblogs.com/wangtao_20/p/4057591.html
http://blog.csdn.net/yaday/article/details/7570032
Https://blog.linuxeye.com/345.html
650) this.width=650; "src=" Http://img.baidu.com/hi/jx2/j_0050.gif "alt=" J_0050.gif "/>650" this.width=650; "src=" Http://img.baidu.com/hi/jx2/j_0049.gif "alt=" J_0049.gif "/>650" this.width=650; "src=" http://img.baidu.com/hi/ Jx2/j_0048.gif "alt=" J_0048.gif "/>650" this.width=650; "src=" Http://img.baidu.com/hi/jx2/j_0035.gif "alt=" j_ 0035.gif "/>
This article is from "Phper Xuchen-Focus on PHP Technology" blog, be sure to keep this source http://xuqin.blog.51cto.com/5183168/1681823
PHP installation using memcached