第七色在线视频,2021少妇久久久久久久久久,亚洲欧洲精品成人久久av18,亚洲国产精品特色大片观看完整版,孙宇晨将参加特朗普的晚宴

為了賬號安全,請及時綁定郵箱和手機立即綁定
已解決430363個問題,去搜搜看,總會有你想問的

哪里錯了???

這是我的結構文件:/var/www/html/test/MVC/├── test│?? ├── MVC│?? │?? ├── Controller│?? │?? │?? └── testController.class.php│?? │?? ├── function.php│?? │?? ├── index.php│?? │?? ├── Model│?? │?? │?? └── testModel.class.php│?? │?? ├── test.php│?? │?? └── View│?? │?????? └── testView.class.php│?? └── others/test/MVC/Controller/testController.class.php<?php class?testController{ ????function?show(){ ????????//$testModel?=?new?testModel(); ????????$testModel?=?Model('test'); ????????$data=$testModel->get(); ????????//$testView?=?new?testView(); ????????$testView?=?View('test'); ????????$testView->display($data); ????} } ?>/test/MVC/Model/testModel.class.php<?php ????class?testModel{ ????????function?get(){ ????????????echo?"Hello?World!"; ????????} ????} ?>/test/MVC/View/testView.class.php<?php class?testView{ ????function?display($data){ ????????echo?$data; ????} } ?>function.php<?php ????function?Controller($name,$method){ ????????require_once('/test/MVC/Controller/'.$name.'Controller.class.php'); ????????//$testController?=?new?testController(); ????????//$testController->show(); ????????eval('$obj?=?new'.$name.'Controller();?$obj->'.$method.'();'); ????} ????Controller('test','show'); ????function?Model($name){ ????????require_once('/test/MVC/Model/'.$name.'Model.class.php'); ????????//$testModel?=?new?testModel(); ????????eval('$obj?=?new?'.$name.'Model();'); ????????return?$obj; ????} ????function?View($name){ ????????require_once('/test/MVC/View/'.$name.'View.class.php'); ????????//$testView?=?new?testView(); ????????eval('$obj?=?new?'.$name.'View();'); ????????return?$obj; ????} ????function?daddslashes($str){ ????????return?(!get_magic_quotes_gpc())?addslashes($str):$str; ????} ?>index.php<?php ????//url形式?index.php?controller=控制器名&method=方法名 ????require_once('function.php'); ????$controllerAllow?=?array('test','index'); ????$methodAllow?=?array('test','index','show'); ????$controller?=?in_array($_GET['controller'],?$controllerAllow)?daddslashes($_GET['controller']):'index'?; ????$method?=?in_array($_GET['method'],$methodAllow)?daddslashes($_GET['method']):'index'; ????Controller($controller,$method); ?>報的錯誤信息:http://127.0.0.1/test/MVC/Warning:?require_once(/test/MVC/Controller/testController.class.php):? failed?to?open?stream:?No?such?file?or?directory?in? /var/www/html/test/MVC/function.php?on?line?3 Fatal?error:? require_once():?Failed?opening?required? '/test/MVC/Controller/testController.class.php'? (include_path='.:/usr/local/php/lib/php')?in? /var/www/html/test/MVC/function.php?on?line?3哪里錯了啊……看不出來……
查看完整描述

1 回答

?
pardon110

TA貢獻1038條經(jīng)驗 獲得超227個贊

請檢查目錄權限。

查看完整回答
反對 回復 2015-09-30
  • 1 回答
  • 0 關注
  • 1444 瀏覽

添加回答

了解更多

舉報

0/150
提交
取消
微信客服

購課補貼
聯(lián)系客服咨詢優(yōu)惠詳情

幫助反饋 APP下載

慕課網(wǎng)APP
您的移動學習伙伴

公眾號

掃描二維碼
關注慕課網(wǎng)微信公眾號