0

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

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();

该项目是 IN YII 1.1x 框架。请建议我如何消除此错误

4

0 回答 0