php require_once Failed opening required 错误如何解决

suncheng_hong 2011-08-29 02:20:24
<?php
require_once '../../service/Service.php';执行到这里出错
错误提示是:

Compile Error: /littlephpcms/admin/lib/db/conn_front.php line 2 - require_once() [<a href='function.require'>function.require</a>]: Failed opening required '../../service/Service.php' (include_path='.;D:\Program Files\Zend\ZendServer\share\ZendFramework\library')

Debug Warning: /littlephpcms/admin/lib/db/conn_front.php line 2 - require_once() [<a href='function.require-once'>function.require-once</a>]: It is not safe to rely on the system's timezone settings. You are *required* to use the date.timezone setting or the date_default_timezone_set() function. In case you used any of those methods and you are still getting this warning, you most likely misspelled the timezone identifier. We selected 'UTC' for '8.0/no DST' instead

网上说是权限问题,没看懂,请懂得朋友看看怎么回事?
...全文
3103 2 打赏 收藏 转发到动态 举报
AI 作业
写回复
用AI写文章
2 条回复
切换为时间正序
请发表友善的回复…
发表回复
只要开心就好 2011-08-29
  • 打赏
  • 举报
回复
可能是路径的问题……
fellowcheng 2011-08-29
  • 打赏
  • 举报
回复
require_once '../../service/Service.php'
相对路径有问题,你检查下实际的php文件路径

21,893

社区成员

发帖
与我相关
我的任务
社区描述
从PHP安装配置,PHP入门,PHP基础到PHP应用
社区管理员
  • 基础编程社区
加入社区
  • 近7日
  • 近30日
  • 至今
社区公告
暂无公告

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