PHP captures instant stock information
<?
$file_name="";
if(is_file($file_name)) {
exec("cat $file_name",$buffer);
for($i=0;$i<count($buffer);$i++) {
if(strstr($buffer[$i],"<!--Stock Market Daily Dynamics-->")) break; //Find this line
}
for($j=$i;$j<$i+70;$j++) { //Catch the following 70 lines
$str.= $buffer[$j];
}
echo $str;
}
?>
<?
$file_name="";
if(is_file($file_name)) {
exec("cat $file_name",$buffer);
for($i=0;$i<count($buffer);$i++) {
if(strstr($buffer[$i],"<!--Stock Market Daily Dynamics-->")) break; //Find this line
}
for($j=$i;$j<$i+70;$j++) { //Catch the following 70 lines
$str.= $buffer[$j];
}
echo $str;
}
?>