来看看我的zend framework配置哪里错了

ayayad 2011-06-20 12:46:23
Warning: require_once(C:/wamp/www//library/Controller.php) [function.require-once]: failed to open stream: No such file or directory in C:\wamp\www\xx\index.php on line 3

Fatal error: require_once() [function.require]: Failed opening required 'C:/wamp/www//library/Controller.php' (include_path='.;C:\php5\pear') in C:\wamp\www\xx\index.php on line 3
以上是浏览器报的错

以下是我的index.php文件内容
<?php
define('APP_PATH',$_SERVER['DOCUMENT_ROOT']);
require_once APP_PATH.'/library/Controller.php';
$front = Controller::getinstance();
$front->run();
?>

这个PHP项目是我拷来的,原来运行没问题,,但到我这就这样了.........
...全文
109 6 打赏 收藏 转发到动态 举报
写回复
用AI写文章
6 条回复
切换为时间正序
请发表友善的回复…
发表回复
buxialai 2011-08-24
  • 打赏
  • 举报
回复
是不是apache配置的关系
ayayad 2011-06-26
  • 打赏
  • 举报
回复
....没有人知道,,还是我描述的不够清楚!!!
ayayad 2011-06-23
  • 打赏
  • 举报
回复
[Quote=引用 3 楼 aidiweili 的回复:]
$_SERVER["REQUEST_URI"] 是URI
[/Quote]
你是不是说把REDIRECT_URL换成REQUEST_URI??
我这样试了,结果网页倒干净,就报了个:error,其他什么都没有...
古枫尘 2011-06-22
  • 打赏
  • 举报
回复
$_SERVER["REQUEST_URI"] 是URI
ayayad 2011-06-22
  • 打赏
  • 举报
回复
好像是我把路径搞错了,现在上述问题没有了,但新的问题又来了,继续报错
Notice: Undefined index: REDIRECT_URL in C:\wamp\www\xx\library\Controller.php on line 27
error

Controller.php的第27行是这句:$path = trim($_SERVER['REDIRECT_URL'],'/');
好像是$_SERVER['REDIRECT_URL']的问题.......怎么解决啊??
yuxingye 2011-06-20
  • 打赏
  • 举报
回复
你这个是因为库的配置有问题,现在是找不到Controller.php.

是你的include_path='.;C:\php5\pear'这里配置不对。

解决方法:把framework的库,copy到工程目录下的library。

4,251

社区成员

发帖
与我相关
我的任务
社区描述
国内外优秀PHP框架讨论学习
社区管理员
  • Framework
加入社区
  • 近7日
  • 近30日
  • 至今
社区公告
暂无公告

试试用AI创作助手写篇文章吧