note 103829 deleted from memcache.connect by danbrown

From: Date: Thu, 05 May 2011 15:02:54 +0000
Subject: note 103829 deleted from memcache.connect by danbrown
References: 1  Groups: php.notes 
Request: Send a blank email to php-notes+get-179456@lists.php.net to get a copy of this message
Note Submitter: cloakedninjas ---- Further to Geoffrey's post. Using the OO approach, connect() will always return an object, whether the server is available or not. <?php // will always return an object $memcache = @$memcache->connect($server, $port); ?> Only using the procedural memcache_connect can you get a boolean to work with.

« previous php.notes (#179456) next »