My native environment php5.2.6
memcached.exe 1.2.4
The dll of memcache is available in various versions http://pan.baidu.com/s/1hqj7ab6
If you are unsure, please contact me
1. Write a phpinfo view file
2. Then search for php.ini in phpinfo to find the location of php.ini, and confirm that the php.ini you modified is the same as the actual one. The running php.ini is a file.
3. Check whether the ext directory in php.ini is the directory where you put php_memcache.dll
4. Check whether the ext directory of php is in the system environment variable.
To use memcached in PHP, first download memcached-client.php. After downloading memcached-client.php, you can operate the memcached service through the class "memcached" in this file. In fact, the code call is very simple. The main methods used are add(), get(), replace() and delete(). The method description is as follows: add ($key, $val, $exp = 0) writes to memcached Enter the object, $key is the unique identifier of the object, $val is the written object data, $exp is the expiration time in seconds, and the default is unlimited time; get ($key)www.phpnewer.com/index. php/Tszj/detail/id/404