<?php
//this is intializer.php
defined('DS')? null :define('DS',DIRECTORY_SEPARATOR);
defined('SITE_ROOT')? null :
define('SITE_ROOT',DS.'C:',DS.'wamp',DS.'www',DS.'photo_gallery');
defined('LIB_PATH')?null:define('LIB_PATH',SITE_ROOT.DS.'includes');
require_once(LIB_PATH.DS.'datainfo.php');
require_once(LIB_PATH.DS.'function.php');
require_once(LIB_PATH.DS.'session.php');
require_once(LIB_PATH.DS.'database.php');
require_once(LIB_PATH.DS.'user.php');
//this is other file where i call php file
// ERROR Use of undefined constant LIB_PATH - assumed 'LIB_PATH' in
//C:\wamp\www\photo_gallery\includes\database.php on
//Notice: Use of undefined constant DS - assumed 'DS' in
//C:\wamp\www\photo_gallery\includes\database.php on
include(LIB_PATH.DS."database.php")
?>
关于什么可能导致上述错误的任何想法?预先感谢您的帮助。包含文件时出现问题
我真的很感谢我recorrect由于任何方式 定义( 'SITE_ROOT', 'C:' DS.'wamp'.DS.'www'.DS.'photo_gallery” ); 我删除了一个DS.'c:'并写下('site_root','C:') – Vicky 2010-04-22 05:23:59