设置包括路径内部服务器错误500

时间:2013-02-06 09:44:42

标签: include-path

我一直试图让这段代码工作,它可以包含我其他目录的文件路径。我在Xampp服务器上运行它,但每次我尝试打开www / index.php我从Xampp(php_error_log)读取错误日志后收到HTTP 500错误(内部服务器错误)这是什么返回:

PHP Fatal error:  require_once(): Failed opening required 'core/Core.php' (include_path='.;\xampp-portable\php\PEAR.') in C:\xampp-portable\htdocs\www\index.php on line 21

引用代码是:

<?php

/**
 * bootstrap: instantiates Core
 * all requests are routed through this file
 */

error_reporting(E_ALL);

ini_set('url_rewriter.tags', '');
ini_set('display_errors', 'off');
ini_set('memory_limit', '128M');
set_include_path(get_include_path() .':'. realpath(dirname(__FILE__) . '/../bumblebee' . ':'));

define('PAYMENT_TEST', false);
define('C2C_BETA', false);
define('USE_SSL', true);

session_start();

require_once('.;/core/Core.php');
new Core();

?>

以下是我的目录设置:

  • Xampp Root
    • 的htdocs
    • WWW
      • 的index.php
      • core.php中
    • 熊蜂
    • 另外4个目录与这段代码没有任何关系(据我所知)

我现在正在黑暗中奔跑,主要是因为我自己没有写这段代码。如果您想了解一些可以随意询问的事情我会尽力澄清情况,如果这一切都有点模糊,也很抱歉。

P.S。它已经写在mac上,我现在正在编辑它以便在Windows上工作。

0 个答案:

没有答案
相关问题