Oh that'll do every chat message in the log though so...
PHP code:
<?
$things = file('server.log');
$chats = Array();
foreach ($things as $thing) {
if (strpos($thing, "[INFO] <")) {
$chats[] = htmlspecialchars(substr($thing, 27));
}
}
$chatt = implode("<br />", array_slice($chats, -30));
echo $chatt;
?>
That'll get the last 30. Change the -30 on line 12 to adjust.