MimiQue Posted December 4, 2006 Posted December 4, 2006 I have not done anything to my website today besides try to integratet the PayPal IPN, and all of a sudden I was getting 1 error, i posted a couple of minutes and now I am getting this error. Warning: main(includes/functions/database.php): failed to open stream: No such file or directory in /home/cust2/user1285208/html/catalog/includes/application_top.php on line 64 Fatal error: main(): Failed opening required 'includes/functions/database.php' (include_path='.:/usr/share/pear') in /home/cust2/user1285208/html/catalog/includes/application_top.php on line 64 I just sent out advertisements for the site and I am freaking out because it wont work. The code from the above file is if ($request_type == 'NONSSL') { define('DIR_WS_CATALOG', DIR_WS_HTTP_CATALOG); } else { define('DIR_WS_CATALOG', DIR_WS_HTTPS_CATALOG); } // include the list of project filenames require(DIR_WS_INCLUDES . 'filenames.php'); // include the list of project database tables require(DIR_WS_INCLUDES . 'database_tables.php'); // customization for the design layout define('BOX_WIDTH', 125); // how wide the boxes should be in pixels (default: 125) // include the database functions require(DIR_WS_FUNCTIONS . 'database.php'); // make a connection to the database... now tep_db_connect() or die('Unable to connect to database server!'); // set the application parameters $configuration_query = tep_db_query('select configuration_key as cfgKey, configuration_value as cfgValue from ' . TABLE_CONFIGURATION); while ($configuration = tep_db_fetch_array($configuration_query)) { define($configuration['cfgKey'], $configuration['cfgValue']); } // if gzip_compression is enabled, start to buffer the output if ( (GZIP_COMPRESSION == 'true') && ($ext_zlib_loaded = extension_loaded('zlib')) && (PHP_VERSION >= '4') ) { if (($ini_zlib_output_compression = (int)ini_get('zlib.output_compression')) < 1) { if (PHP_VERSION >= '4.0.4') { ob_start('ob_gzhandler'); } else { include(DIR_WS_FUNCTIONS . 'gzip_compression.php'); ob_start(); ob_implicit_flush(); } } else { ini_set('zlib.output_compression_level', GZIP_LEVEL); } } // set the HTTP GET parameters manually if search_engine_friendly_urls is enabled if (SEARCH_ENGINE_FRIENDLY_URLS == 'true') { if (strlen(getenv('PATH_INFO')) > 1) { $GET_array = array(); $PHP_SELF = str_replace(getenv('PATH_INFO'), '', $PHP_SELF); $vars = explode('/', substr(getenv('PATH_INFO'), 1)); for ($i=0, $n=sizeof($vars); $i<$n; $i++) { if (strpos($vars[$i], '[]')) { $GET_array[substr($vars[$i], 0, -2)][] = $vars[$i+1]; } else { $HTTP_GET_VARS[$vars[$i]] = $vars[$i+1]; } $i++; } Any help.... Please!!! MQ
kgt Posted December 4, 2006 Posted December 4, 2006 Make sure that the file includes/functions/database.php exists in that location. Contributions Discount Coupon Codes Donations
MimiQue Posted December 4, 2006 Author Posted December 4, 2006 Make sure that the file includes/functions/database.php exists in that location. The file is there. I can't figure this out, anyone please help.
Recommended Posts
Archived
This topic is now archived and is closed to further replies.