CODE |
STOCK |
PREV |
CLOSE |
CHANGE |
CI WTG |
Contrib. CI Pts |
10Sen Chg CI Pts |
$filename = "/home/finpres/csv/klse/ci.txt";
$in = fopen($filename,"r");
while (!feof($in)) {
$line = fgets($in,1024);
list($a,$b,$c,$d,$e,$f,$g,$h) = split(",",$line,8);
if($g){ //check for garbage data...
$a_ = ereg_replace("\"","",$a);
$b_ = ereg_replace("\"","",$b);
/* Put a tag at the beginning of $string. */
$go = $num / 5;
$num++;
if($num > $printbegin && $num < $printend) {
if (!($go % 2)) { // $chg $vola
echo "$a_ | $b_ | $c | $d | $e | $f | $g | $h | ";
} else {
echo " $a_ | $b_ | $c | $d | $e | $f | $g | $h | ";
}
}
}
} // end while
echo " |