-
Notifications
You must be signed in to change notification settings - Fork 0
/
Copy pathparams.example.php
80 lines (64 loc) · 2.77 KB
/
params.example.php
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
36
37
38
39
40
41
42
43
44
45
46
47
48
49
50
51
52
53
54
55
56
57
58
59
60
61
62
63
64
65
66
67
68
69
70
71
72
73
74
75
76
77
78
79
80
<?php
//////////////////////////////////////////////////
// Include paths and filenames
//////////////////////////////////////////////////
$BASE_DIR = "/home/boyle/";
$APP_DIR = $BASE_DIR."nsr/";
$CONFIG_DIR = $BASE_DIR; // dir where db user & pwd file kept
$DATADIR = $BASE_DIR."nsr_data/user_data/";
// Path and name of log file
$LOGFILE_NAME = "log.txt";
$LOGFILE_PATH = $APP_DIR . "log/";
$LOGFILE = $LOGFILE_PATH . $LOGFILE_NAME;
// general php functions
$utilities_path=$BASE_DIR."global_utilities/";
include $utilities_path."functions.inc";
include $utilities_path."taxon_functions.inc";
include $utilities_path."sql_functions.inc";
include $utilities_path."geo_functions.inc";
$timer_on=$utilities_path."timer_on.inc";
$timer_off=$utilities_path."timer_off.inc";
// Include files for core nsr application
$nsr_includes_dir="nsr_includes/"; // include files specific to nsr app
// Include files for batch applicaton
$batch_includes_dir="nsr_batch_includes/"; // include files specific to batch app
//////////////////////////////////////////////////
// Set to ' o.is_in_cache=0 ' to check non-
// cached observations only. Results for cached
// observations will be obtained from cache
// (faster).
// Otherwise, set to ' 1 ' to force NSR to look up
// resolve all observations from scratch (slower)
//////////////////////////////////////////////////
//$CACHE_WHERE = " 1 ";
//$CACHE_WHERE_NA = " 1 "; // no alias version
$CACHE_WHERE = " o.is_in_cache=0 ";
$CACHE_WHERE_NA = " is_in_cache=0 "; // no alias version
//////////////////////////////////////////////////
// Default batch size
// Recommend 10000
//////////////////////////////////////////////////
$batch_size=10000;
//////////////////////////////////////////////////
// MySQL import parameters for raw observation text file
// Set any variable to empty string to remove entirely
//////////////////////////////////////////////////
$local = " LOCAL "; // LOCAL keyword
$fields_terminated_by = " FIELDS TERMINATED BY ',' ";
//$fields_terminated_by = " FIELDS TERMINATED BY '\t' ";
$optionally_enclosed_by = " OPTIONALLY ENCLOSED BY '\"' ";
//$optionally_enclosed_by = "";
// whichever of the following works will depend on the operating system
// the input file was created or modified on
//$lines_terminated_by = " LINES TERMINATED BY '\r\n' "; // windows line-endings
$lines_terminated_by = " LINES TERMINATED BY '\r' "; // mac line-endings
//$lines_terminated_by = " LINES TERMINATED BY '\n' "; // unix line-endings
$ignore_lines = " IGNORE 1 LINES "; // Ignore header line?
//$ignore_lines = ""; // Ignore header line?
//////////////////////////////////////////////////
// Optional run-time echo variables
// Only used if running in batch mode and runtime
// echo enabled
//////////////////////////////////////////////////
$done = "done\r\n";
?>