แก้ไขยังงัยครับ Warning: require_once(C:\AppServ\www\yiiadmission/../../yii/framework/yii.php)

wave
phakawat khunraksa
4,268
สังคมนักพัฒนาระบบ (Community)
แก้ไขยังงัยครับ Warning: require_once(C:\AppServ\www\yiiadmission/../../yii/framework/yii.php)

<p><b>Warning</b>: require_once(C:AppServwwwyiiadmission/../../yii/framework/yii.php) [<a href="http://localhost/yiiadmission/function.require-once">function.require-once</a>]: failed to open stream: No such file or directory in<b>C:AppServwwwyiiadmissionindex.php</b>&nbsp;on line&nbsp;<b>12</b><br><br><b>Fatal error</b>: require_once() [<a href="http://localhost/yiiadmission/function.require">function.require</a>]: Failed opening required 'C:AppServwwwyiiadmission/../../yii/framework/yii.php' (include_path='.;C:php5pear') in<b>C:AppServwwwyiiadmissionindex.php</b>&nbsp;on line&nbsp;<b>12</b><br></p>

3 ความคิดเห็น

  • panu fufuang

  • มานพ กองอุ่น

  • phakawat khunraksa

Warning: require_once(C:\AppServ\www\yiiadmission/../../yii/framework/yii.php) [function.require-once]: failed to open stream: No such file or directory inC:\AppServ\www\yiiadmission\index.php on line 12

Fatal error: require_once() [function.require]: Failed opening required 'C:\AppServ\www\yiiadmission/../../yii/framework/yii.php' (include_path='.;C:\php5\pear') inC:\AppServ\www\yiiadmission\index.php on line 12

แก้ไขไฟล์ index.php ให้ include ไปยังไฟล์ yii.php ใน folder framework ครับ

ช่วยแก้code ให้ดูหน่อยได้มั้ยค่ะ

<?php

// change the following paths if necessary

$yii=dirname(__FILE__).'/../../yii/framework/yii.php';

$config=dirname(__FILE__).'/protected/config/main.php';

// remove the following lines when in production mode

defined('YII_DEBUG') or define('YII_DEBUG',true);

// specify how many levels of call stack should be shown in each log message

defined('YII_TRACE_LEVEL') or define('YII_TRACE_LEVEL',3);

require_once($yii);

Yii::createWebApplication($config)->run();

php?>