Warning: require_once(\C:\wamp\www\gallery\includes\config.php) [function.require-once]: failed to open stream: Invalid argument in C:\wamp\www\gallery\includes\initialize.php on line 15
Fatal error: require_once() [function.require]: Failed opening required '\C:\wamp\www\gallery\includes\config.php' (include_path='.;C:\php5\pear') in C:\wamp\www\gallery\includes\initialize.php on line 15
my code is below:
<?php
// Define the core paths
// Define them as absolute paths to make sure that require_once as expected.
// Directory_SEPARATOR is a php pre-defined constant
// (\ for windows, / for Unix)
defined('DS') ? null : define('DS', DIRECTORY_SEPARATOR);
defined('SITE_ROOT') ? null :
define('SITE_ROOT', DS.'C:'.DS.'wamp'.DS.'www'.DS.'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 objects
require_once(LIB_PATH.DS."session.php");
require_once(LIB_PATH.DS."database.php");
//load database-related classes
require_once(LIB_PATH.DS."user.php");
?>