', $lig); } $pos =ftell($fh); } } } else if ($date!=date('Y-m-d',$lastdate)) { $data[0]=array($time,"",""); } echo json_encode(array('pos' => $pos, 'data' => $data)); ?>