GAZADI Posted March 13, 2003 Share Posted March 13, 2003 i amn't php developer so i need help to connect database. i already create the catalog database in mysql. but i having problme connecting to database through scripts. i have installed odbc.. which file do i need add path for connection. right now i am gettig following error.. thanks Notice: Undefined variable: DOCUMENT_ROOT in c:inetpubwwwrootcatalogincludesapplication_top.php on line 18 Unable to connect to database server![/b] Link to comment Share on other sites More sharing options...
GAZADI Posted March 14, 2003 Author Share Posted March 14, 2003 i fixed the connection problme but gettit all this error http://localhost/catalog/ Notice: Undefined variable: DOCUMENT_ROOT in c:inetpubwwwrootcatalogincludesapplication_top.php on line 18 Notice: Use of undefined constant SID - assumed 'SID' in c:inetpubwwwrootcatalogincludesapplication_top.php on line 183 Warning: session_start() [function.session-start]: Cannot send session cookie - headers already sent by (output started at c:inetpubwwwrootcatalogincludesapplication_top.php:18) in c:inetpubwwwrootcatalogincludesfunctionssessions.php on line 4 Warning: session_start() [function.session-start]: Cannot send session cache limiter - headers already sent (output started at c:inetpubwwwrootcatalogincludesapplication_top.php:18) in c:inetpubwwwrootcatalogincludesfunctionssessions.php on line 4 Notice: Undefined variable: cart in c:inetpubwwwrootcatalogincludesapplication_top.php on line 196 Notice: Constant PREV_NEXT_BAR_LOCATION already defined in c:inetpubwwwrootcatalogincludesapplication_top.php on line 205 Notice: Undefined variable: language in c:inetpubwwwrootcatalogincludesapplication_top.php on line 212 Notice: Undefined variable: language in c:inetpubwwwrootcatalogincludesapplication_top.php on line 213 Notice: Undefined index: language in c:inetpubwwwrootcatalogincludesapplication_top.php on line 215 Notice: Undefined variable: currency in c:inetpubwwwrootcatalogincludesapplication_top.php on line 220 Notice: Undefined variable: currency in c:inetpubwwwrootcatalogincludesapplication_top.php on line 221 Notice: Undefined index: currency in c:inetpubwwwrootcatalogincludesapplication_top.php on line 223 Warning: setlocale() [function.setlocale]: Passing locale category name as string is deprecated. Use the LC_* -constants instead. in c:inetpubwwwrootcatalogincludeslanguagesenglish.php on line 12 Notice: Undefined index: action in c:inetpubwwwrootcatalogincludesapplication_top.php on line 244 Notice: Undefined index: cPath in c:inetpubwwwrootcatalogincludesapplication_top.php on line 289 Notice: Undefined index: manufacturers_id in c:inetpubwwwrootcatalogincludeslanguagesenglishdefault.php on line 13 Link to comment Share on other sites More sharing options...
toolcrazy Posted March 14, 2003 Share Posted March 14, 2003 You error is caused by paths. Try localhost as your database server instead of any URL. Steve ------------------------- Link to comment Share on other sites More sharing options...
toolcrazy Posted March 14, 2003 Share Posted March 14, 2003 As I said your paths are not correct in your configure.php files or it also may be a configure error in your PHP.ini file, globles are turned off. Steve ------------------------- Link to comment Share on other sites More sharing options...
GAZADI Posted March 14, 2003 Author Share Posted March 14, 2003 but getting all this error message now what is this DOCUMENT_ROOT Notice: Undefined variable: DOCUMENT_ROOT in c:inetpubwwwrootcatalogincludesapplication_top.php on line 18 Notice: Use of undefined constant SID - assumed 'SID' in c:inetpubwwwrootcatalogincludesapplication_top.php on line 183 Warning: session_start() [function.session-start]: Cannot send session cookie - headers already sent by (output started at c:inetpubwwwrootcatalogincludesapplication_top.php:1 in c:inetpubwwwrootcatalogincludesfunctionssessions.php on line 4 Warning: session_start() [function.session-start]: Cannot send session cache limiter - headers already sent (output started at c:inetpubwwwrootcatalogincludesapplication_top.php:1 in c:inetpubwwwrootcatalogincludesfunctionssessions.php on line 4 Link to comment Share on other sites More sharing options...
Ajeh Posted March 14, 2003 Share Posted March 14, 2003 Check your /includes/configure.php files. Do you have a reference to DOCUMENT_ROOT? Is there a $ in front of that like $DOCUMENT_ROOT ... is you are using it there should be. Note: the better thing to use than $DOCUMENT_ROOT is your actual path. Example: define('DIR_FS_DOCUMENT_ROOT', '/home/octave/public_html'); Link to comment Share on other sites More sharing options...
Recommended Posts
Archived
This topic is now archived and is closed to further replies.