0

我越来越:

注意:使用未定义的常量 ABS_BASE - 在第 11 行的 D:\path\include\global.php 中假定为“ABS_BASE”

我的global.php文件看起来像

<?php

/**
 * Load configuration file
 */
include 'config.php';

/**
 * Dynamically allocate base path
 */
$uri = reset(explode("?", preg_replace('/^' . preg_quote(ABS_BASE, '/') . '/', '', $_SERVER['REQUEST_URI'])));
define("BASE", str_repeat("../", substr_count($uri, "/")));

/**
 * Load misc functions
 */
include 'function.misc.php';

我的config.php文件看起来像

<?php

/**
 * Set to 0 or comment out to turn off errors
 */
ini_set("display_errors", 1);

/**
 * Defines the root dir of your site
 * 
 * Example values:
 *   /
 *   /shop/
 */
define("ABS_BASE", "/");

显然,我是ABS_BASE在调用它之前定义的,那么为什么会出现此错误?

4

0 回答 0