chrometweaks.org

Is iPage.com a good website host?

Click Here To View All Answers...


My question is Is iPage.com a good website host? Many thanks for any answer or 2. Another question... Getting this error after confirmation page:.

Parse error: parse error in /catalog/includes/configure.php on line 19.

Warning: main(DIR_WS_INCLUDESfilenames.php): failed to open stream: No such file or directory in /catalog/includes/application_top.php on line 53.

Fatal error: main(): Failed opening required 'DIR_WS_INCLUDESfilenames.php' (include_path='.:/usr/lib/php:/usr/local/lib/php') in /catalog/includes/application_top.php on line 53.

Any ideas??.

Here's my config:.

// Define the webserver and path parameters.

// * DIR_FS_* = Filesystem directories (local/physical).

// * DIR_WS_* = Webserver directories (virtual/URL).

Define('HTTP_SERVER', 'http://www.welovescience.com'); // eg,.

Http://localhost.

- should not be empty for productive servers.

Define('HTTPS_SERVER', 'https://www.welovescience.com'); // eg,.

Https://localhost.

- should not be empty for productive servers.

Define('ENABLE_SSL', 'true); // secure webserver for checkout procedure?.

Define('HTTP_COOKIE_DOMAIN', 'www.welovescience.com');.

Define('HTTPS_COOKIE_DOMAIN', 'www.welovescience.com');.

Define('HTTP_COOKIE_PATH', 'welovescience.com/catalog/');.

Define('HTTPS_COOKIE_PATH', 'welovescience.com/catalog/');.

Define('DIR_WS_HTTP_CATALOG', '/catalog/');.

Define('DIR_WS_HTTPS_CATALOG', '/catalog/');.

Define('DIR_WS_IMAGES', 'images/');.

Define('DIR_WS_ICONS', DIR_WS_IMAGES'icons/');.

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_DOWNLOAD_PUBLIC',DIR_WS_CATALOG'pub/');.

Define('DIR_FS_CATALOG', '/home/weloves/public_html/catalog/');.

Define('DIR_FS_DOWNLOAD', DIR_FS_CATALOG'download/');.

Define('DIR_FS_DOWNLOAD_PUBLIC', DIR_FS_CATALOG'pub/');.

// define our database connection.

Define('DB_SERVER', 'localhost'); // eg, localhost - should not be empty for productive servers.

Define('DB_SERVER_USERNAME', '****');.

Define('DB_SERVER_PASSWORD', '****');.

Define('DB_DATABASE', '****);.

Define('USE_PCONNECT', 'true'); // use persistent connections?.

Define('STORE_SESSIONS', 'mysql'); // leave empty '' for default handler or set to 'mysql'.

?>..

Comments (16)

You betcha! but... you might want to make sure and wait for another person here to confirm it as I am unsure of myself. Better yet, why don't you e-mail the iPage guys because they can answer you better...

Comment #1

LINE 19.

Define('ENABLE_SSL', 'true); // secure webserver for checkout procedure?.

I think my SSL is set up right. I get a padlock during checkout. But after I tried to check out last night, I got that parse error, and now I can't get to my iPage site at all. the parse error is on all pages??.

Here's config....

// Define the webserver and path parameters.

// * DIR_FS_* = Filesystem directories (local/physical).

// * DIR_WS_* = Webserver directories (virtual/URL).

Define('HTTP_SERVER', 'http://www.welovescience.com'); // eg,.

Http://localhost.

- should not be empty for productive servers.

Define('HTTPS_SERVER', 'https://www.welovescience.com'); // eg,.

Https://localhost.

- should not be empty for productive servers.

Define('ENABLE_SSL', 'true); // secure webserver for checkout procedure?.

Define('HTTP_COOKIE_DOMAIN', 'www.welovescience.com');.

Define('HTTPS_COOKIE_DOMAIN', 'www.welovescience.com');.

Define('HTTP_COOKIE_PATH', 'welovescience.com/catalog/');.

Define('HTTPS_COOKIE_PATH', 'welovescience.com/catalog/');.

Define('DIR_WS_HTTP_CATALOG', '/catalog/');.

Define('DIR_WS_HTTPS_CATALOG', '/catalog/');.

Define('DIR_WS_IMAGES', 'images/');.

Define('DIR_WS_ICONS', DIR_WS_IMAGES'icons/');.

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_DOWNLOAD_PUBLIC',DIR_WS_CATALOG'pub/');.

Define('DIR_FS_CATALOG', '/home/weloves/public_html/catalog/');.

Define('DIR_FS_DOWNLOAD', DIR_FS_CATALOG'download/');.

Define('DIR_FS_DOWNLOAD_PUBLIC', DIR_FS_CATALOG'pub/');.

// define our database connection.

Define('DB_SERVER', 'localhost'); // eg, localhost - should not be empty for productive servers.

Define('DB_SERVER_USERNAME', '****');.

Define('DB_SERVER_PASSWORD', '****');.

Define('DB_DATABASE', '****);.

Define('USE_PCONNECT', 'true'); // use persistent connections?.

Define('STORE_SESSIONS', 'mysql'); // leave empty '' for default handler or set to 'mysql'..

Comment #2

Define('ENABLE_SSL', 'true); // secure webserver for checkout procedure?.

You forgot the last quote. it shoud be 'true' in stead of 'true..

Comment #3

OK! That got rid of the parse error, but I still have:.

Warning: main(DIR_WS_INCLUDESfilenames.php): failed to open stream: No such file or directory in /catalog/includes/application_top.php on line 53.

Fatal error: main(): Failed opening required 'DIR_WS_INCLUDESfilenames.php' (include_path='.:/usr/lib/php:/usr/local/lib/php') in /catalog/includes/application_top.php on line 53.

Here's my application_top:.

<?php.

/*.

$Id: application_top.php,v 1.162 2003/07/12 09:39:03 hpdl Exp $.

OsCommerce, Open Source E-Commerce Solutions.

Http://www.oscommerce.com.

Copyright © 2003 osCommerce.

Released under the GNU General Public License.

*/.

// Start the clock for the page parse time log.

Define('PAGE_PARSE_START_TIME', microtime());.

// Set the level of error reporting.

Error_reporting(E_ALL & ~E_NOTICE);.

// Check if register_globals is enabled..

// Since this is a temporary measure this message is hardcoded. The requirement will be removed before 2.2 is finalized..

If (function_exists('ini_get')) {.

Ini_get('register_globals') or exit('FATAL ERROR: register_globals is disabled in php.ini, please enable it!');.

}.

// Set the local configuration parameters - mainly for developers.

If (file_exists('includes/local/configure.php')) include('includes/local/configure.php');.

// Include application configuration parameters.

Require('includes/configure.php');.

// Define the project version.

Define('PROJECT_VERSION', 'osCommerce 2.2-MS2');.

// set php_self in the local scope.

$PHP_SELF = (isset($HTTP_SERVER_VARS['PHP_SELF']) ? $HTTP_SERVER_VARS['PHP_SELF'] : $HTTP_SERVER_VARS['SCRIPT_NAME']);.

// Used in the "Backup Manager" to compress backups.

Define('LOCAL_EXE_GZIP', '/usr/bin/gzip');.

Define('LOCAL_EXE_GUNZIP', '/usr/bin/gunzip');.

Define('LOCAL_EXE_ZIP', '/usr/local/bin/zip');.

Define('LOCAL_EXE_UNZIP', '/usr/local/bin/unzip');.

// 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).

// Define how do we update currency exchange rates.

// Possible values are 'oanda' 'xe' or ''.

Define('CURRENCY_SERVER_PRIMARY', 'oanda');.

Define('CURRENCY_SERVER_BACKUP', 'xe');.

// 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 application wide 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']);.

}.

// define our general functions used application-wide.

Require(DIR_WS_FUNCTIONS'general.php');.

Require(DIR_WS_FUNCTIONS'html_output.php');.

// initialize the logger class.

Require(DIR_WS_CLASSES'logger.php');.

// include shopping cart class.

Require(DIR_WS_CLASSES'shopping_cart.php');.

// some code to solve compatibility issues.

Require(DIR_WS_FUNCTIONS'compatibility.php');.

// check to see if php implemented session management functions - if not, include php3/php4 compatible session class.

If (!function_exists('session_start')) {.

Define('PHP_SESSION_NAME', 'osCAdminID');.

Define('PHP_SESSION_PATH', '/');.

Define('PHP_SESSION_SAVE_PATH', SESSION_WRITE_DIRECTORY);.

Include(DIR_WS_CLASSES'sessions.php');.

}.

// define how the session functions will be used.

Require(DIR_WS_FUNCTIONS'sessions.php');.

// set the session name and save path.

Tep_session_name('osCAdminID');.

Tep_session_save_path(SESSION_WRITE_DIRECTORY);.

// set the session cookie parameters.

If (function_exists('session_set_cookie_params')) {.

Session_set_cookie_params(0, DIR_WS_ADMIN);.

} elseif (function_exists('ini_set')) {.

Ini_set('session.cookie_lifetime', '0');.

Ini_set('session.cookie_path', DIR_WS_ADMIN);.

}.

// lets start our session.

Tep_session_start();.

// set the language.

If (!tep_session_is_registered('language') || isset($HTTP_GET_VARS['language'])) {.

If (!tep_session_is_registered('language')) {.

Tep_session_register('language');.

Tep_session_register('languages_id');.

}.

Include(DIR_WS_CLASSES'language.php');.

$lng = new language();.

If (isset($HTTP_GET_VARS['language']) && tep_not_null($HTTP_GET_VARS['language'])) {.

$lng->set_language($HTTP_GET_VARS['language']);.

} else {.

$lng->get_browser_language();.

}.

$language = $lng->language['directory'];.

$languages_id = $lng->language['id'];.

}.

// include the language translations.

Require(DIR_WS_LANGUAGES$language'.php');.

$current_page = basename($PHP_SELF);.

If (file_exists(DIR_WS_LANGUAGES$language'/'$current_page)) {.

Include(DIR_WS_LANGUAGES$language'/'$current_page);.

}.

// define our localization functions.

Require(DIR_WS_FUNCTIONS'localization.php');.

// Include validation functions (right now only email address).

Require(DIR_WS_FUNCTIONS'validations.php');.

// setup our boxes.

Require(DIR_WS_CLASSES'table_block.php');.

Require(DIR_WS_CLASSES'box.php');.

// initialize the message stack for output messages.

Require(DIR_WS_CLASSES'message_stack.php');.

$messageStack = new messageStack;.

// split-page-results.

Require(DIR_WS_CLASSES'split_page_results.php');.

// entry/item info classes.

Require(DIR_WS_CLASSES'object_info.php');.

// email classes.

Require(DIR_WS_CLASSES'mime.php');.

Require(DIR_WS_CLASSES'email.php');.

// file uploading class.

Require(DIR_WS_CLASSES'upload.php');.

// calculate category path.

If (isset($HTTP_GET_VARS['cPath'])) {.

$cPath = $HTTP_GET_VARS['cPath'];.

} else {.

$cPath = '';.

}.

If (tep_not_null($cPath)) {.

$cPath_array = tep_parse_category_path($cPath);.

$cPath = implode('_', $cPath_array);.

$current_category_id = $cPath_array[(sizeof($cPath_array)-1)];.

} else {.

$current_category_id = 0;.

}.

// default open navigation box.

If (!tep_session_is_registered('selected_box')) {.

Tep_session_register('selected_box');.

$selected_box = 'configuration';.

}.

If (isset($HTTP_GET_VARS['selected_box'])) {.

$selected_box = $HTTP_GET_VARS['selected_box'];.

}.

// the following cache blocks are used in the Tools->Cache section.

// ('language' in the filename is automatically replaced by available languages).

$cache_blocks = array(array('title' => TEXT_CACHE_CATEGORIES, 'code' => 'categories', 'file' => 'categories_box-language.cache', 'multiple' => true),.

Array('title' => TEXT_CACHE_MANUFACTURERS, 'code' => 'manufacturers', 'file' => 'manufacturers_box-language.cache', 'multiple' => true),.

Array('title' => TEXT_CACHE_ALSO_PURCHASED, 'code' => 'also_purchased', 'file' => 'also_purchased-language.cache', 'multiple' => true).

);.

// check if a default currency is set.

If (!defined('DEFAULT_CURRENCY')) {.

$messageStack->add(ERROR_NO_DEFAULT_CURRENCY_DEFINED, 'error');.

}.

// check if a default language is set.

If (!defined('DEFAULT_LANGUAGE')) {.

$messageStack->add(ERROR_NO_DEFAULT_LANGUAGE_DEFINED, 'error');.

}.

If (function_exists('ini_get') && ((bool)ini_get('file_uploads') == false) ) {.

$messageStack->add(WARNING_FILE_UPLOADS_DISABLED, 'warning');.

}.

?>.

LINE 51 // Define how do we update currency exchange rates.

LINE 52 // Possible values are 'oanda' 'xe' or ''.

LINE 53 define('CURRENCY_SERVER_PRIMARY', 'oanda');.

LINE 54 define('CURRENCY_SERVER_BACKUP', 'xe');..

Comment #4

I got it back!!.

I had saved the catalog/includes configure.php in the admin/includes folder. DUH!.

Guess I shouldn't work at midnight anymore!.

I do still have problems checking out. I can't get past the confirmation page? It just gives me a blank page?.

Any insight on this one..

Thanks for the help this far.....

Comment #5

Getting this error after confirmation page:.

Parse error: parse error in /catalog/includes/configure.php on line 19.

Warning: main(DIR_WS_INCLUDESfilenames.php): failed to open stream: No such file or directory in /catalog/includes/application_top.php on line 53.

Fatal error: main(): Failed opening required 'DIR_WS_INCLUDESfilenames.php' (include_path='.:/usr/lib/php:/usr/local/lib/php') in /catalog/includes/application_top.php on line 53.

Any ideas??.

Here's my config:.

// Define the webserver and path parameters.

// * DIR_FS_* = Filesystem directories (local/physical).

// * DIR_WS_* = Webserver directories (virtual/URL).

Define('HTTP_SERVER', 'http://www.welovescience.com'); // eg,.

Http://localhost.

- should not be empty for productive servers.

Define('HTTPS_SERVER', 'https://www.welovescience.com'); // eg,.

Https://localhost.

- should not be empty for productive servers.

Define('ENABLE_SSL', 'true); // secure webserver for checkout procedure?.

Define('HTTP_COOKIE_DOMAIN', 'www.welovescience.com');.

Define('HTTPS_COOKIE_DOMAIN', 'www.welovescience.com');.

Define('HTTP_COOKIE_PATH', 'welovescience.com/catalog/');.

Define('HTTPS_COOKIE_PATH', 'welovescience.com/catalog/');.

Define('DIR_WS_HTTP_CATALOG', '/catalog/');.

Define('DIR_WS_HTTPS_CATALOG', '/catalog/');.

Define('DIR_WS_IMAGES', 'images/');.

Define('DIR_WS_ICONS', DIR_WS_IMAGES'icons/');.

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_DOWNLOAD_PUBLIC',DIR_WS_CATALOG'pub/');.

Define('DIR_FS_CATALOG', '/home/weloves/public_html/catalog/');.

Define('DIR_FS_DOWNLOAD', DIR_FS_CATALOG'download/');.

Define('DIR_FS_DOWNLOAD_PUBLIC', DIR_FS_CATALOG'pub/');.

// define our database connection.

Define('DB_SERVER', 'localhost'); // eg, localhost - should not be empty for productive servers.

Define('DB_SERVER_USERNAME', '****');.

Define('DB_SERVER_PASSWORD', '****');.

Define('DB_DATABASE', '****);.

Define('USE_PCONNECT', 'true'); // use persistent connections?.

Define('STORE_SESSIONS', 'mysql'); // leave empty '' for default handler or set to 'mysql'.

?>..

Comment #6

Is this a dedicated or shared server if shared change.

Define('USE_PCONNECT', 'true');.

To false and also change cookie paths to.

Define('HTTP_COOKIE_PATH', '/catalog/');.

Define('HTTPS_COOKIE_PATH', '/catalog/');..

Comment #7


This question was taken from a support group/message board and re-posted here so others can learn from it.