PHP安装警告:[function.:打开流失败



尝试在本地安装groupon克隆脚本时遇到问题。我使用XAMPP运行在windows7

Apache/2.2.17 (Win32) mod_ssl/2.2.17 
OpenSSL/0.9.8o 
PHP/5.3.4 mod_perl/2.0.4 Perl/v5.10.1
MySQL client version: mysqlnd 5.0.7-dev - 091210 - $Revision: 304625

这是我尝试运行index.php时得到的结果:

Deprecated: Assigning the return value of new by reference is deprecated in C:xamppphpPEARConfig.php on line 80
Deprecated: Assigning the return value of new by reference is deprecated in C:xamppphpPEARConfig.php on line 166
Deprecated: Assigning the return value of new by reference is deprecated in C:xamppphpPEARConfigContainer.php on line 111

Warning: require_once(DOCUMENT_ROOT/system/plugins/common.php) [function.require-once]: failed to open stream: No such file or directory in C:UsersxxxxDocumentsEclipsexxxxsystemincludeslibrary.inc.php on line 17
Fatal error: require_once() [function.require]: Failed opening required 'DOCUMENT_ROOT/system/plugins/common.php' (include_path='.;C:xamppphpPEAR') in C:UsersxxxxDocumentsEclipsexxxxsystemincludeslibrary.inc.php on line 17

php文件是这样开始的:

session_start();
require_once ('config.php');        // this is the one that defines DOCUMENT_ROOT
require_once ('functions.php');
require_once ('functions_theme.php');
require_once ('fns.php');

第17行:

    require_once (DOCUMENT_ROOT.'/system/plugins/common.php');

DOCUMENT_ROOT在之前加载的config.php文件中定义如下:

define("DOCUMENT_ROOT",$_SERVER['DOCUMENT_ROOT']);

希望有人能帮忙。

和YES,文件在该目录下(已经检查了:p)。

DOCUMENT_ROOT常量没有被正确解决(我认为您包含的定义它的文件没有被正确包含),PHP正在退回到使用字符串DOCUMENT_ROOT

相关内容

  • 没有找到相关文章

最新更新