register(); while ($line = $log->read()) { // Save $line to database } ?>
register(); while ($line = $log->read()) { $parts = explode(' ', $line); if ($parts[1] == 'JOIN' || $parts[1] == 'QUIT') { // Save $line to database } } ?>In these examples, the package library being used is the "Log" package, specifically the "Log_irc" class within that package.