致命错误:require_once():无法打开所需的''(include_path ='C:\ xampp \ php \ PEAR')

时间:2016-12-09 11:14:34

标签: php yii yii-extensions yii1.x

我从肝服务器下载了一个项目。我已经进行了配置更改。但是当我访问这个项目时,我收到了以下错误

Fatal error: require_once(): Failed opening required '' (include_path='C:\xampp\php\PEAR') 

我的index.php

<?php
ini_set('post_max_size', '64M');
ini_set('upload_max_filesize', '64M');

//  set environment
//error_reporting('~E_NOTICE');
error_reporting(E_ALL & ~E_NOTICE);
require_once(dirname(__FILE__) . '/protected/extensions/yii-environment/Environment.php');
$env = new Environment();

//$env = new Environment('PRODUCTION'); //override mode

// set debug and trace level
defined('YII_DEBUG') or define('YII_DEBUG', $env->yiiDebug);
defined('YII_TRACE_LEVEL') or define('YII_TRACE_LEVEL', $env->yiiTraceLevel);


// run Yii app
//$env->showDebug(); // show produced environment configuration

require_once($env->yiiPath);
//echo '<pre>';print_r($env);exit();
$env->runYiiStatics(); // like Yii::setPathOfAlias()

Yii::createWebApplication($env->configWeb)->run();

该项目是INYII 1.1x frmaework。请建议我如何删除此错误

0 个答案:

没有答案