Using memcache
Posted: Thu May 07, 2009 4:38 pm
Hi,
I'm trying to use memcache with PHP. phpinfo says that memcache is installed.
Here's the code I'm using. I get a "connection refused" warning. Does that mean memcached isn't running? Should it be?
Thanks!
I'm trying to use memcache with PHP. phpinfo says that memcache is installed.
Here's the code I'm using. I get a "connection refused" warning. Does that mean memcached isn't running? Should it be?
- Code: Select all
$memcache = new Memcache;
$memcache->connect('localhost') or die ("Could not connect");
Thanks!