+ -
当前位置:首页 → 问答吧 → php require_once Failed opening required 错误如何解决

php require_once Failed opening required 错误如何解决

时间:2011-08-29

来源:互联网

<?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

网上说是权限问题,没看懂,请懂得朋友看看怎么回事?

作者: suncheng_hong   发布时间: 2011-08-29

require_once '../../service/Service.php'
相对路径有问题,你检查下实际的php文件路径

作者: fellowcheng   发布时间: 2011-08-29

可能是路径的问题……

作者: A82168506   发布时间: 2011-08-29