summaryrefslogtreecommitdiff
path: root/db_update_scripts/config.php
blob: 732879d8e8cb57091eed9f1f6b41220d919d3d9d (plain)
1
2
3
4
5
6
7
8
9
10
11
12
13
14
15
16
17
18
19
20
21
22
23
24
25
26
27
28
29
30
31
32
33
34
35
<?php

/**
 * Copyright (c) 2007 Nathan Kinkade
 * 
 * This code is offered under an MIT (X11) license.  For more information
 * about the terms of this license see the file LICENSE included with this
 * software or visit: http://www.opensource.org/licenses/mit-license.php
 */

# Directory where USDA update files are located
$updatesDir = "./sr20_updates";

# Where to log errors and stats
$fh_log = fopen("./sr20_updates.log", "a");

# Fields are delimited with this character
$delimiter = "^";

# Fields are optionally enclosed between this character
$enclosure = "~";

# site constants that don't need to be interpolated in strings and/or
# are more sensitive will be setup as constants
define("DBHOST", "localhost"); # database host
define("DBNAME", "nutridb_sr20"); # database name
define("DBUSER", "root"); # database user
define("DBPASS", ""); # database password

require("../lib/database.class.php"); # database class  

# instantiate the database object
$db = new Database();

?>