oCache = new Memcache(); $this->bEnabled = true; if (! $this->oCache->connect('localhost', 11211)) { // Instead 'localhost' here can be IP $this->oCache = null; $this->bEnabled = true; } } } // get data from cache server function getData($sKey) { $vData = $this->oCache->get($sKey); return false === $vData ? null : $vData; } // save data to cache server function setData($sKey, $vData) { //Use MEMCACHE_COMPRESSED to store the item compressed (uses zlib). return $this->oCache->set($sKey, $vData, 0, $this->iTtl); } // delete data from cache server function delData($sKey) { return $this->oCache->delete($sKey); } } ?> Can not connect to MySQL
1044 : Access denied for user ''@'localhost' to database 'bdGLOBAL'