I need help with my php file?

Hercules

New member
Can someone tell me why im getting this error.
--------------------------------------------------------------
Notice: Use of undefined constant LIB_PATH - assumed 'LIB_PATH' in C:\wamp\www\btb_Sandbox\photo-gallery\includes\database.php on line 2

Notice: Use of undefined constant DS - assumed 'DS' in C:\wamp\www\btb_Sandbox\photo-gallery\includes\database.php on line 2

Warning: require_once(LIB_PATHDSconfig.php) [function.require-once]: failed to open stream: No such file or directory in C:\wamp\www\btb_Sandbox\photo-gallery\includes\database.php on line 2

Fatal error: require_once() [function.require]: Failed opening required 'LIB_PATHDSconfig.php' (include_path='.;C:\php5\pear') in C:\wamp\www\btb_Sandbox\photo-gallery\includes\database.php on line 2
--------------------------------------------------------------
my database.php line 2
require_once(LIB_PATH.DS."config.php");
--------------------------------------------------------------------------------------------

my initialize.php
defined('DS') ? null : define('DS', DIRECTORY_SEPARATOR);

defined('SITE_ROOT') ? null :
define('SITE_ROOT',DS.'wamp'.DS.'www'.DS.'btb_Sandbox'.DS.'photo-gallery');

defined('LIB_PATH') ? null : define('LIB_PATH', SITE_ROOT.DS.'includes');

// load config file first
require_once(LIB_PATH.DS.'config.php');

// load basic functions next so that everything after can use them
require_once(LIB_PATH.DS.'functions.php');

//load core files
require_once(LIB_PATH.DS."session.php");
require_once( LIB_PATH.DS."database.php");
require_once( LIB_PATH.DS."database_object.php");

//load data-base-related classes
require_once(LIB_PATH.DS."user.php");
initialize
--------------------------------------------------------------------------------------------

I learning php/mysql from lynda.com everything was going good untill this error came up which i dont know how to fix can u help me please.
nope in checking if a constant exist if not i then define it
 
Back
Top