Jump to content
  • Checkout
  • Login
  • Get in touch

osCommerce

The e-commerce.

Funny Config file


emanresu

Recommended Posts

We've always had a non-standard config file as shown here

 

<?php

/*

osCommerce, Open Source E-Commerce Solutions

http://www.oscommerce.com

 

Copyright © 2003 osCommerce

 

Released under the GNU General Public License

*/

 

// Define the webserver and path parameters

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

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

define('HTTP_SERVER', 'http://www.mysite.com'); // eg, http://localhost - should not be empty for productive servers

define('HTTPS_SERVER', 'https://www.mysite.com'); // eg, https://localhost - should not be empty for productive servers

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

define('HTTP_COOKIE_DOMAIN', '.mysite.com');

define('HTTPS_COOKIE_DOMAIN', '.mysite.com');

define('HTTP_COOKIE_PATH', '/');

define('HTTPS_COOKIE_PATH', '/');

define('DIR_WS_HTTP_CATALOG', '/');

define('DIR_WS_HTTPS_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', 'pub/');

define('DIR_FS_CATALOG', '/kunden/homepages/xx/xxxxxx/htdocs/mysite');

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

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

 

// define our database connection

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

define('DB_SERVER_USERNAME', 'user');

define('DB_SERVER_PASSWORD', 'password');

define('DB_DATABASE', 'database');

define('USE_PCONNECT', 'false'); // use persisstent connections?

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

?>

 

Can anyone explain the meaning of the dot in (dot)mysite.com for the cookie domains

Citizen of US Minor Outlying Islands

Link to comment
Share on other sites

Some people say the . makes cookie setting more reliable. My experience is the opposite and I recommend against it.

 

For what it's worth Safari which is one of the most standards compliant browsers adds a dot to many cookies all by itself.

Local: Mac OS X 10.5.8 - Apache 2.2/php 5.3.0/MySQL 5.4.10 • Web Servers: Linux

Tools: BBEdit, Coda, Versions (Subversion), Sequel Pro (db management)

Link to comment
Share on other sites

Some people say the . makes cookie setting more reliable. My experience is the opposite and I recommend against it.

 

For what it's worth Safari which is one of the most standards compliant browsers adds a dot to many cookies all by itself.

 

Certain versions of Netscape do not accept cookies if domain name doesn't start with a dot

Treasurer MFC

Link to comment
Share on other sites

Certain versions of Netscape do not accept cookies if domain name doesn't start with a dot

Which ones?

Local: Mac OS X 10.5.8 - Apache 2.2/php 5.3.0/MySQL 5.4.10 • Web Servers: Linux

Tools: BBEdit, Coda, Versions (Subversion), Sequel Pro (db management)

Link to comment
Share on other sites

Here's a good snapshot of browser share from a very busy site:

 

http://www.sitemeter.com/default.asp?actio...lykos&report=13

 

I just downloaded the most recent version of Netscape for the Mac (7.2) and it doesn't seem to care.

Local: Mac OS X 10.5.8 - Apache 2.2/php 5.3.0/MySQL 5.4.10 • Web Servers: Linux

Tools: BBEdit, Coda, Versions (Subversion), Sequel Pro (db management)

Link to comment
Share on other sites

Archived

This topic is now archived and is closed to further replies.

×
×
  • Create New...