注意:本地测试,可能会报错。类似于:
Notice: Memcache::connect() [function.Memcache-connect]: Server localhost (tcp 11211) failed with: 由于连接方在一段时间后没有正确答复或连接的主机没有反应,连接尝试失败。 (10060) in ***/test.php on line 4 Warning: Memcache::connect() [function.Memcache-connect]: Can't connect to localhost:11211, 由于连接方在一段时间后没有正确答复或连接的主机没有反应,连接尝试失败。 (10060) in ***/test.php on line 4
Could not connect
解决办法:
把localhost换成127.0.0.1 博客已经搬家,请访问如下地址:http://www.czhphp.com