Location: PHPKode > projects > Obsessive Website Statistics > ows/include/sample-config.inc.php
<?php
	/*
		Sample configuration file. For more information 
		on available configuration directives, refer to
		default.inc.php
	*/

	global $cfg;
	
	// database config -- should be self-explanatory
	$cfg['db_host'] = "localhost";
	$cfg['db_user'] = "username";
	$cfg['db_pass'] = "password";
	$cfg['db_db'] = "databasename";

	// this value can be 'mysql' or 'postgre'. However, postgre probably does not
	// work at this point.. but it may. Its not supported at this time.
	$cfg['db_type'] = "mysql";
	
	$cfg['debug'] = false;
	$cfg['explain_sql'] = false;
	
	// you MUST set this. Ideally, set to your local timezone. See http://us.php.net/manual/en/timezones.php 
	//$cfg['timezone']				= "GMT";
	
	// setup per-website options
	// NOTE: notice how domain.com doesn't have www in front of it? Do that. 
	$cfg['websites']['domain.com'] = array();
	$cfg['websites']['domain.com']['preferred_name'] = 'www.domain.com';
	$cfg['websites']['domain.com']['aliases'] = array('www.domain.com'); 	// almost everyone wants this
	$cfg['websites']['domain.com']['log_format'] = APACHE_LOG_COMBINED;
	//$cfg['websites']['domain.com']['log_format'] = APACHE_LOG_COMMON;

	//$cfg['websites']['google.com'] = array();
	//$cfg['websites']['google.com']['preferred_name'] = 'www.google.com';
	//$cfg['websites']['google.com']['aliases'] = array('www.google.com'); 	// almost everyone wants this
	//$cfg['websites']['google.com']['log_format'] = APACHE_LOG_COMBINED;
	//$cfg['websites']['google.com']['log_format'] = APACHE_LOG_COMMON;
	//$cfg['websites']['google.com']['lots_of_hits'] = true;				// gets over 2 billion log lines
	
?>
Return current item: Obsessive Website Statistics