本课程学完了,下载老师提供的源代码,放到Apache根目录运行。出现如下错误:
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');这句代码错了。请问错在什么地方?谢谢!
请你将require_once('/libs/controller/'.$name.'Controller.class.php');
libs前的根目录符号去掉
将代码require_once('/libs/controller/'.$name.'Controller.class.php');改成require_once('/libs/Controller/'.$name.'Controller.class.php');即controller写成Controller,运行代码仍出现上述提示。我错在哪儿呢?
请检查你的目录路径的大小写问题,谢谢