sionus Posted May 16, 2003 Posted May 16, 2003 ok, so when i run default.php for the first time i get the error: Notice: Undefined variable: DOCUMENT_ROOT in c:inetpubwwwrootcatalogincludesapplication_top.php on line 18 Unable to connect to database server! and this is the beginning of my application_top.php file define('HTTP_SERVER', 'http://sionus.sytes.net'); define('DIR_FS_DOCUMENT_ROOT', $DOCUMENT_ROOT . 'C:inetpubwwwroot'); // where your pages are located on the server.. needed to delete images.. (eg, /usr/local/apache/htdocs) define('DIR_FS_LOGS', '/'); define('DIR_WS_ADMIN', '/admin/'); define('DIR_WS_CATALOG', '/catalog/'); define('DIR_FS_CATALOG', DIR_FS_DOCUMENT_ROOT . DIR_WS_CATALOG); define('DIR_WS_IMAGES', DIR_WS_ADMIN . 'images/'); define('DIR_WS_CATALOG_IMAGES', DIR_WS_CATALOG . 'images/'); define('DIR_WS_INCLUDES', 'includes/'); define('DIR_WS_BOXES', DIR_WS_INCLUDES . 'boxes/'); define('DIR_WS_FUNCTIONS', DIR_WS_INCLUDES . 'functions/'); define('DIR_WS_CLASSES', DIR_WS_INCLUDES . 'classes/'); define('DIR_WS_MODULES', DIR_WS_INCLUDES . 'modules/'); define('DIR_WS_LANGUAGES', DIR_WS_INCLUDES . 'languages/'); define('DIR_WS_CATALOG_LANGUAGES', DIR_WS_CATALOG . 'includes/languages/'); define('DIR_FS_PAYMENT_MODULES', DIR_FS_DOCUMENT_ROOT . DIR_WS_CATALOG . 'includes/modules/payment/'); define('DIR_FS_SHIPPING_MODULES', DIR_FS_DOCUMENT_ROOT . DIR_WS_CATALOG . 'includes/modules/shipping/'); I have tried all kinds of things for the directory but it doesn't seem to want to work.. I'm a newbie at this so any help would be appreciated. Thanks
Daemonj Posted May 16, 2003 Posted May 16, 2003 In the line: define('DIR_FS_DOCUMENT_ROOT', $DOCUMENT_ROOT . 'C:inetpubwwwroot'); remove the $DOCUMENT_ROOT . portion making the line: define('DIR_FS_DOCUMENT_ROOT', 'C:inetpubwwwroot'); and that should resolve your problem. "Great spirits have always found violent opposition from mediocre minds. The latter cannot understand it when a man does not thoughtlessly submit to hereditary prejudices but honestly and courageously uses his intelligence." - A. Einstein
Recommended Posts
Archived
This topic is now archived and is closed to further replies.