關(guān)于目錄結(jié)構(gòu)
本課程學(xué)完了,下載老師提供的源代碼,放到Apache根目錄運行。出現(xiàn)如下錯誤:
Warning: ?require_once(/libs/controller/indexController.class.php) [function.require-once]: failed to open stream: No such file or directory in D:\ProgramFiles\PHP\AppServ\www\mvc\framework\function\function.php on line 3
Fatal error: ?require_once() [function.require]: Failed opening required '/libs/controller/indexController.class.php' (include_path='.;C:\php5\pear') in D:\ProgramFiles\PHP\AppServ\www\mvc\framework\function\function.php on line 3
即require_once('/libs/controller/'.$name.'Controller.class.php');這句代碼錯了。請問錯在什么地方?謝謝!
2016-10-21
請你將require_once('/libs/controller/'.$name.'Controller.class.php');
libs前的根目錄符號去掉
2016-10-05
將代碼require_once('/libs/controller/'.$name.'Controller.class.php');改成require_once('/libs/Controller/'.$name.'Controller.class.php');即controller寫成Controller,運行代碼仍出現(xiàn)上述提示。我錯在哪兒呢?
2016-10-01
請檢查你的目錄路徑的大小寫問題,謝謝