");
$time = $this->getTimeValue($line,$timeFormat,$milli);
if ($time['iso'] == '')
continue; //cannot load time
fputs($f,"".$time['iso']." | ");
$l = substr($l,$time['srclen'],strlen($l)-$time['srclen']);
foreach($fields as $field)
{
if (isset($field['xtype']) && (strcmp($field['xtype'],'dateTime') == 0) &&
isset($field['ucd']) && (strcmp($field['ucd'],'time.epoch') == 0))
continue; //skip time field
if (!isset($field['array_size']))
$size = 1;
else
$size = $field['array_size'];
fputs($f,"");
for ($i = 0; $i < $size; $i++)
{
$l = trim($l);
if ($l == '')
{
//
$l = fgets($in);
$l = trim($l);
}
sscanf($l,"%s",$str_value);
if ($i > 0)
if (!strstr($field['id'], 'xyz'))
fputs($f," ");
else {
fputs($f," | ");
// $str_value = floatval($str_value) * 3393.00;
} fputs($f,$str_value);
$l = substr($l,strlen($str_value),strlen($l)-strlen($str_value));
}
fputs($f," | ");
}
fputs($f,"
\n");
}
fclose($in);
fputs($f,"