I have a problem with SiteRoot....
so I have this code here:
Code: Select all
<?php
//Main initiation file
//Whenever a page is load, the content below should be load.
//To keep track of the good file location
//The directory separator is now defined as the constant DS
defined('DS') ? null : define('DS', DIRECTORY_SEPARATOR);
//Define the site root, to be change when moving the site
defined('SITE_ROOT') ? null :
define('SITE_ROOT', DS."www".DS."uw-ligues");
//Define library path (path to the include folder)
defined('LIB_PATH') ? null :
define('LIB_PATH', SITE_ROOT.DS.'includes');
//Loading configuration file first
require_once(LIB_PATH.DS.'config.php');
//Loading basic functions
require_once(LIB_PATH.DS.'functions.php');
//Loading core object
require_once(LIB_PATH.DS.'class_session.php');
require_once(LIB_PATH.DS.'class_database.php');
require_once(LIB_PATH.DS.'class_database_object.php');
// Loading objects
require_once(LIB_PATH.DS.'class_player.php');
require_once(LIB_PATH.DS.'class_position.php');
require_once(LIB_PATH.DS.'class_view.php');
require_once(LIB_PATH.DS.'class_pagination.php');
// On met des valeurs par dŽfaut requises par PHP5
date_default_timezone_set('America/Montreal');
setlocale(LC_MONETARY, 'en_US');
?>
But the file is in the correct directory...Warning: require_once(/www/uw-ligues/includes/config.php) [function.require-once]: failed to open stream: No such file or directory in /home/uweavec1/public_html/uw-ligues/includes/initialize.php on line 18
Fatal error: require_once() [function.require]: Failed opening required '/www/uw-ligues/includes/config.php' (include_path='.:/usr/lib/php:/usr/local/lib/php') in /home/uweavec1/public_html/uw-ligues/includes/initialize.php on line 18
Thanks for your help,
ara