Copyright © 2005 Holotech Enterprises.
Quoting Fields
If there is a possibility that data from the form may contain the delimiter character(s),
you may wish to quote the field that may contain it. To do this, add single-quote
characters around the field name in the $PHORM_LOGVAR string; for
example:
$PHORM_LOGVAR = "Name PHORM_FROM 'Comments'";
If you would like a different character to be used for quoting, you can specify it
with the variable $PHORM_LOGQUOT. When the line is written to
the log, the single-quote characters in $PHORM_LOGVAR will be
replaced with this character. Note that, regardless of what you have $PHORM_LOGQUOT set to, you still indicate the location of the
quote character in $PHORM_LOGVAR using the single-quote
character.
Multiple Logs
If you wish to log to more than one file, or to log more than one line to a file, $PHORM_LOG and $PHORM_LOGVAR can both be
defined as arrays. If there are values in $PHORM_LOGVAR without a
match in $PHORM_LOG, they will be logged in file in the first
file defined in $PHORM_LOG.
$PHORM_LOG[1] = "log1.txt";
$PHORM_LOG[2] = "log2.txt";
$PHORM_LOGVAR[1] = "firstname lastname username password";
$PHORM_LOGVAR[2] = "timestamp $REMOTE_ADDR";
$PHORM_LOGVAR[3] = "email ordernum";
You can also define $PHORM_LDELIM and $PHORM_LOGQUOT as arrays if you wish. If you do, $PHORM_LDELIM[1] and $PHORM_LOGQUOT[1] will be
used with $PHORM_LOG[1], and so on. If $PHORM_LDELIM and $PHORM_LOGQUOT are defined but
are not arrays, they will simply be used with all logs.
0101000001101000011011110111001001101101010010010111001101000011011011110110111101101100