Connecting to memcached "which port should use?" (php)

Here is the connect statement:

$memcache = new Memcache;
$memcache->connect('127.0.0.1',11211) or die('Could not connect');

You are missing a memcached connect statement.

Memcached's default port is widely considered to be 11211.

Use something like http://livebookmark.net/memcachephp/memcachephp.zip to test your memcached/php installation.


By the default, memcached listen on port 11211. Which port you use to connect and what's the exactly error you get?