Warning: file_get_contents(/data/phpspider/zhask/data//catemap/1/database/9.json): failed to open stream: No such file or directory in /data/phpspider/zhask/libs/function.php on line 167

Warning: Invalid argument supplied for foreach() in /data/phpspider/zhask/libs/tag.function.php on line 1116

Notice: Undefined index: in /data/phpspider/zhask/libs/function.php on line 180

Warning: array_chunk() expects parameter 1 to be array, null given in /data/phpspider/zhask/libs/function.php on line 181
Php yii memcache包含错误_Php_Memcached_Yii_Yii Components - Fatal编程技术网

Php yii memcache包含错误

Php yii memcache包含错误,php,memcached,yii,yii-components,Php,Memcached,Yii,Yii Components,我得到这个错误: include(Memcache.php) [<a href='function.include'>function.include</a>]: failed to open stream: No such file or directory 确保您已经为您的php版本安装了memcache。在哪里包括memcache.php?我通常将所有这些类放入components目录,并强制我的组件在Yii中使用这些类! 384 * @return boolea

我得到这个错误:

include(Memcache.php) [<a href='function.include'>function.include</a>]: failed to open stream: No such file or directory

确保您已经为您的php版本安装了memcache。

在哪里包括memcache.php?我通常将所有这些类放入components目录,并强制我的组件在Yii中使用这些类!
384 * @return boolean whether the class has been loaded successfully
385      */
386     public static function autoload($className)
387     {
388         // use include so that the error PHP file may appear
389         if(isset(self::$_coreClasses[$className]))
390             include(YII_PATH.self::$_coreClasses[$className]);
391         else if(isset(self::$classMap[$className]))
392             include(self::$classMap[$className]);
393         else
394         {
395             if(strpos($className,'\\')===false)
396                 include($className.'.php');
397             else  // class name with namespace in PHP 5.3
398             {
399                 $namespace=str_replace('\\','.',ltrim($className,'\\'));
400                 if(($path=self::getPathOfAlias($namespace))!==false)
401                     include($path.'.php');
402                 else
403                     return false;
404             }
405             return class_exists($className,false) || interface_exists($className,false);
406         }
407         return true;
408     }