>> update information
\n"; echo "".$histry['date']."
\n"; echo ""; foreach($histry['content'] as $c) { if(preg_match("/http:\/\//",$c)) { echo preg_replace("/\[(.+):(.+)\]/","$2",$c) . "
"; } else { echo preg_replace("/\[(.+):(.+)\]/","$2",$c) . "
"; } } echo "
\n
"; } if($hFile = fopen('history.csv','r')) { while(($record = fgetcsv($hFile,1000,',')) !== FALSE) { $clist = preg_split("/[,]/",trim($record[1],'"')); printHistry(array('date' => $record[0],'content' => $clist)); } } ?>